intellibrix v1.0.0
    Preparing search index...

    Class Intelligence

    Represents an intelligence service that can be used by a Brick to process and respond to messages, backed by any Provider.

    Index
    checkpointer?: Checkpointer
    maxSteps: number
    model: string
    onEvent?: (event: LoopEvent) => void
    onRunEvent?: RunEventHandler
    onToolApproval?: ApprovalHook
    provider: Provider
    system: string

    Accumulates token usage/cost across every ask/object call on this instance.

    • Generates embeddings for the given input strings, if the provider supports it.

      Parameters

      • input: string[]

      Returns Promise<number[][]>

    • Generates an image from a prompt, if the provider supports it.

      Parameters

      • prompt: string

      Returns Promise<{ data?: string; url?: string }>

    • Forces a structured response via a synthetic tool call matching schema, returning its parsed input. Avoids per-provider JSON-mode plumbing.

      Type Parameters

      • T

      Parameters

      • schema: StandardSchemaV1<T, T>
      • prompt: string | Message

      Returns Promise<T>