result.Content. When streaming, you can observe thinking deltas via AgentEventTypeReasoningMessageContent events if you want to display the reasoning process to users.
Reasoning tokens incur additional cost on top of normal output tokens. Use
BudgetTokens to cap how much thinking the model does per call, and check result.LLMUsage.ReasoningTokens to track spend.WithLLMSampling and LLMReasoning. Fields are provider-agnostic — each LLM client maps them to its native API.
Configure
Field mapping
Anthropic extended thinking requires
BudgetTokens ≥ 1024. The SDK clamps lower values to 1024 automatically.Streaming
When the provider returns thinking deltas, streaming emits reasoning events:
See Streaming for event handling patterns.
Token usage
Reasoning tokens appear inLLMUsage.ReasoningTokens when the provider reports them. They are included in the aggregate on AgentRunResult.LLMUsage.
Example
Reasoning
Extended thinking on supported models
Related
LLM Providers
Provider clients and model selection
Streaming
Reasoning stream events