from polos import Agent, max_steps, MaxStepsConfig
thinking_agent = Agent(
id="thinking_agent",
provider="openai",
model="gpt-4o-mini",
system_prompt="""You are a logical reasoning expert. When given a problem:
1. Restate the problem
2. Break down your thinking into clear steps
3. Consider potential pitfalls
4. Arrive at a conclusion
5. State your confidence level""",
output_schema=ReasoningOutput,
stop_conditions=[max_steps(MaxStepsConfig(limit=20))],
)