> ## Documentation Index
> Fetch the complete documentation index at: https://phidatainc-studio-tools-doc.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Together Reasoning Agent

> Cookbook example for `together/reasoning_agent.py`.

```python theme={null}
"""
Together Reasoning Agent
========================

Cookbook example for `together/reasoning_agent.py`.
"""

from agno.agent import Agent
from agno.models.together import Together

# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------

agent = Agent(
    model=Together(
        id="Qwen/Qwen3-235B-A22B-Thinking-2507",
    ),
    reasoning=True,
)
agent.print_response("How many r are in the word 'strawberry'?", show_reasoning=True)

# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------

if __name__ == "__main__":
    pass
```

## Run the Example

```bash theme={null}
# Clone and setup repo
git clone https://github.com/agno-agi/agno.git
cd agno/cookbook/90_models/together

# Create and activate virtual environment
./scripts/demo_setup.sh
source .venvs/demo/bin/activate

python reasoning_agent.py
```
