> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agno.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Non-Reasoning Model Agent

> Use a non-reasoning model like `gpt-4.1` as an agent's `reasoning_model` for Chain-of-Thought reasoning.

Example showing how to use a non-reasoning model as a reasoning model.

For reasoning, we recommend using a Reasoning Agent (with `reasoning=True`), or using an appropriate reasoning model with `reasoning_model`.

<Steps>
  <Step title="Add the following code to your Python file">
    ```python non-reasoning-model-cot.py theme={null}
    from agno.agent import Agent
    from agno.models.openai import OpenAIResponses

    reasoning_agent = Agent(
        model=OpenAIResponses(id="gpt-5.2"),
        reasoning_model=OpenAIResponses(
            id="gpt-4.1", # This model will be used for reasoning, although it is not a native reasoning model.
            max_output_tokens=1200,
        ),
        markdown=True,
    )
    reasoning_agent.print_response(
        "Give me steps to write a python script for fibonacci series",
        stream=True,
        show_full_reasoning=True,
    )

    # It uses the default model of the Agent
    reasoning_agent = Agent(
        model=OpenAIResponses(id="gpt-4.1", max_output_tokens=1200),
        reasoning=True,
        markdown=True,
    )
    reasoning_agent.print_response(
        "Give me steps to write a python script for fibonacci series",
        stream=True,
        show_full_reasoning=True,
    )
    ```
  </Step>

  <Snippet file="create-venv-step.mdx" />

  <Step title="Install dependencies">
    ```bash theme={null}
    uv pip install -U openai agno
    ```
  </Step>

  <Step title="Export your OpenAI API key">
    <CodeGroup>
      ```bash Mac/Linux theme={null}
        export OPENAI_API_KEY="your_openai_api_key_here"
      ```

      ```bash Windows theme={null}
        $Env:OPENAI_API_KEY="your_openai_api_key_here"
      ```
    </CodeGroup>
  </Step>

  <Step title="Run Agent">
    ```bash theme={null}
    python non-reasoning-model-cot.py
    ```
  </Step>
</Steps>
