thinking_tool_calls.py
Run the Example
1
Set up your virtual environment
2
Install dependencies
3
Export your DeepSeek API key
4
Run the example
Save the code above as
thinking_tool_calls.py, then run:Combine DeepSeek thinking mode with web search tool calls and show full reasoning.
Set up your virtual environment
Install dependencies
Export your DeepSeek API key
Run the example
thinking_tool_calls.py, then run: