Documentation
    Preparing search index...

    Class AbstractAiAdapterAbstract

    Abstract blueprint for AI model provider adapters.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Generate structured data from a prompt

      Parameters

      • prompt: any
      • schema: any

        The expected output schema

      • Optionaloptions: any

      Returns Promise<any>

    • Generate plain text from a prompt

      Parameters

      • prompt: string
      • Optionaloptions: any

      Returns Promise<string>

    • Generate a streaming text response from a prompt.

      Parameters

      • prompt: string

        The instruction or query.

      • Optionaloptions: any

        Configuration options.

      Returns Promise<AsyncIterable<string, any, any>>

      A promise resolving to an async iterable stream of text chunks.

    • Adapter specific initialization

      Returns void