Agent
to think through a problem step-by-step before jumping into a response. The Agent works through different ideas, validating and correcting as needed. Once it reaches a final answer, it will validate and provide a response. Let’s give it a try. Create a file reasoning_agent.py
reasoning=True
. When using reasoning with tools, do not use structured_outputs=True
as gpt-4o cannot use tools with structured outputs.
structured_outputs=True
as gpt-4o cannot use tools with structured outputs. Lets create a finance agent that can reason.