gwyong
1
Hi, I am currently using the below code, but my agent becomes slower than when I using GPT-4.1.
Agent_I = Agent(
## INPUT INFORMATION AGENT QA AGENT
name="Input Information Agent",
instructions=instruction,
model=GPT-5,
output_type=InputQAOutput
)
I believe that reasoning process takes long time.
How can I turn off reasoning while using GPT-5 with the above code?
Thanks,
2 Likes
if you add this parameter it will fix that
reasoning={
"effort": "minimal"
}
2 Likes
gwyong
3
Thank you for your help. I just tried, but failed.
I got this error.
```
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[24], line 1
----> 1 Agent_I = Agent(
2 ## INPUT INFORMATION AGENT QA AGENT
3 name="Input Information Agent",
4 instructions=instruction,
5 model="gpt-5",
6 reasoning={"effort": "minimal"},
7 output_type=InputQAOutput
8 )
(...)
24 output_type=GenerationOutput,
25 )
TypeError: Agent.__init__() got an unexpected keyword argument 'reasoning'
This agent comes from OpenAI agent SDK.
from agents import Agent
Where should I put that parameter?
Thanks,
with the Agents SDK you can use the model_settings parameter to include the resoning effort. like this:
model_settings=ModelSettings(
reasoning={
"effort": "low"
}
)
I noticed that if you are using the fileSearchTool, the effort: minimal wont work, but low does.
Hope it helps 