Skip to Content

LlmapiResponseResponse

LlmapiResponseResponse = object

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

Properties

client_injected_tools?

optional client_injected_tools: string[]

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

ClientInjectedTools are tool names the client provided in the original request.


created_at?

optional created_at: number

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

Created is the Unix timestamp of creation (created_at in OpenAI format)


extra_fields?

optional extra_fields: LlmapiResponseExtraFields

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


id?

optional id: string

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

ID is the unique response identifier


image_model?

optional image_model: string

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

ImageModel is set when an image generation tool was called during the request. This allows the client to detect that the response contains generated images and render them appropriately, even when the orchestrating model is a text model.


messages?

optional messages: LlmapiMessage[]

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

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:2040 

Model is the model used for generation


object?

optional object: string

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

Object is the response type (e.g., “response”)


output?

optional output: LlmapiResponseOutputItem[]

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

Output is the array of output items (OpenAI Responses API format)


portal_injected_tools?

optional portal_injected_tools: string[]

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

PortalInjectedTools are tool names the portal’s classifier added to the request.


tool_call_events?

optional tool_call_events: LlmapiToolCallEvent[]

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

ToolCallEvents is an array of tool call events.


tools_checksum?

optional tools_checksum: string

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

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


usage?

optional usage: LlmapiResponseUsage

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

Last updated on