Skip to main content
Together retired the source’s Qwen/Qwen3-235B-A22B-Thinking-2507 serverless model. Select a current model from the Together reasoning model list before running. See Together deprecations.
reasoning_agent.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export environment variables

4

Use the selected reasoning model

Add import os, then replace "Qwen/Qwen3-235B-A22B-Thinking-2507" with os.environ["TOGETHER_REASONING_MODEL_ID"] in the saved file.
5

Run the example

Save the code above as reasoning_agent.py, then run:
Full source: cookbook/90_models/together/reasoning_agent.py