Skip to Content
SdkClientInternalType AliasesLlmapiChatCompletionResponse

LlmapiChatCompletionResponse

LlmapiChatCompletionResponse = object

Defined in: src/client/types.gen.ts:475 

Properties

choices?

optional choices: LlmapiChoice[]

Defined in: src/client/types.gen.ts:479 

Choices contains the completion choices


extra_fields?

optional extra_fields: LlmapiChatCompletionExtraFields

Defined in: src/client/types.gen.ts:480 


id?

optional id: string

Defined in: src/client/types.gen.ts:484 

ID is the completion ID


messages?

optional messages: LlmapiMessage[]

Defined in: src/client/types.gen.ts:491 

Messages contains the full conversation history when local tools need execution. This is populated when the model requests tools that are not MCP tools (local/client-side tools). The client should execute these tools and send a new request with this message history plus the tool results appended.


model?

optional model: string

Defined in: src/client/types.gen.ts:495 

Model is the model used


tool_call_events?

optional tool_call_events: LlmapiToolCallEvent[]

Defined in: src/client/types.gen.ts:499 

ToolCallEvents is an array of tool call events.


tools_checksum?

optional tools_checksum: string

Defined in: src/client/types.gen.ts:503 

ToolsChecksum is the checksum of the tool schemas used by the AI Portal.


usage?

optional usage: LlmapiChatCompletionUsage

Defined in: src/client/types.gen.ts:504 

Last updated on