Interface: LLMResponse
@providerprotocol/ai / @providerprotocol/ai / LLMResponse
Interface: LLMResponse
Section titled “Interface: LLMResponse”Defined in: src/types/llm.ts:293
Internal
Raw provider response from a single inference cycle.
Does not include tool loop handling - that’s managed by llm() core.
Properties
Section titled “Properties”
optionaldata:unknown
Defined in: src/types/llm.ts:307
Structured output data extracted by the provider. Present when a structure schema was requested and successfully extracted.
message
Section titled “message”message:
AssistantMessage
Defined in: src/types/llm.ts:295
The assistant’s response message
stopReason
Section titled “stopReason”stopReason:
string
Defined in: src/types/llm.ts:301
Stop reason from the provider
usage:
TokenUsage
Defined in: src/types/llm.ts:298
Token usage for this cycle