Skip to content

Interface: LLMResponse

@providerprotocol/ai


@providerprotocol/ai / @providerprotocol/ai / 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.

optional data: 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: AssistantMessage

Defined in: src/types/llm.ts:295

The assistant’s response message


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