DeepSeek

Run DeepSeek models with reasoning, thinking mode, structured output, retries, and tool use.

ExampleDescription
DeepSeek BasicRun a DeepSeek V4 Flash agent with sync, async, and streaming responses.
DeepSeek Reasoning AgentSolve the missionaries and cannibals puzzle with DeepSeek V4 Pro reasoning.
Reasoning EffortTune reasoning depth with reasoning_effort.
RetryReview retry settings and why invalid model IDs cannot reliably exercise the retry path.
DeepSeek Structured OutputRequest JSON from DeepSeek and validate it locally as a MovieScript.
Thinking ModeEnable or disable DeepSeek V4 thinking mode and inspect reasoning_content.
Thinking Tool CallsCombine DeepSeek thinking mode with web search tool calls and show full reasoning.
Tool UseAnswer news questions with a DeepSeek V4 Flash agent using web search tools.