Documentation
¶
Overview ¶
Command reasoning asks a reasoning-capable model to think before answering and streams the reasoning and the final answer as separate phases.
It shows the provider-neutral Reasoning knob: a ModelThinkingLevel that each adapter maps to its own native form and clamps to what the model supports. Thinking arrives as EventThinking* events, distinct from the EventText* answer, so a caller can display or hide it. Non-reasoning models ignore the setting.
The API key is read from the provider's environment variable when StreamOptions.APIKey is empty:
DEEPSEEK_API_KEY=sk-... go run ./example/llm/reasoning
Click to show internal directories.
Click to hide internal directories.