@agorio/sdkDocs


Interface: LlmAdapter

Properties

modelName

readonly modelName: string

Get the model name

Defined in

src/types/index.ts:415

Methods

chat()

chat(messages, tools?): Promise<LlmResponse>

Send a message and get a response, optionally with tool definitions

Parameters

messages: ChatMessage[]

tools?: ToolDefinition[]

Returns

Promise<LlmResponse>

Defined in

src/types/index.ts:411


chatStream()?

optional chatStream(messages, tools?): AsyncIterable<LlmStreamChunk, any, any>

Stream a response, yielding chunks as they arrive

Parameters

messages: ChatMessage[]

tools?: ToolDefinition[]

Returns

AsyncIterable<LlmStreamChunk, any, any>

Defined in

src/types/index.ts:413