LlmapiChatCompletionResponse
LlmapiChatCompletionResponse =
object
Defined in: src/client/types.gen.ts:1019
Properties
choices?
optionalchoices:LlmapiChoice[]
Defined in: src/client/types.gen.ts:1023
Choices contains the completion choices
client_injected_tools?
optionalclient_injected_tools:string[]
Defined in: src/client/types.gen.ts:1027
ClientInjectedTools are tool names the client provided in the original request.
extra_fields?
optionalextra_fields:LlmapiChatCompletionExtraFields
Defined in: src/client/types.gen.ts:1028
id?
optionalid:string
Defined in: src/client/types.gen.ts:1032
ID is the completion ID
inference_id?
optionalinference_id:string
Defined in: src/client/types.gen.ts:1036
InferenceID is the unique identifier for this inference request
messages?
optionalmessages:LlmapiMessage[]
Defined in: src/client/types.gen.ts:1043
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?
optionalmodel:string
Defined in: src/client/types.gen.ts:1047
Model is the model used
portal_injected_tools?
optionalportal_injected_tools:string[]
Defined in: src/client/types.gen.ts:1051
PortalInjectedTools are tool names the portal’s classifier added to the request.
tool_call_events?
optionaltool_call_events:LlmapiToolCallEvent[]
Defined in: src/client/types.gen.ts:1055
ToolCallEvents is an array of tool call events.
tools_checksum?
optionaltools_checksum:string
Defined in: src/client/types.gen.ts:1059
ToolsChecksum is the checksum of the tool schemas used by the AI Portal.
usage?
optionalusage:LlmapiChatCompletionUsage
Defined in: src/client/types.gen.ts:1060