Skip to content

Add support for minimal reasoning effort #1408

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

SeeknnDestroy
Copy link

Fixes #1407

Summary

  • depend on OpenAI Python 1.99.3 to expose new minimal reasoning effort
  • adjust converters and LiteLLM integration for updated OpenAI tool-call types
  • cover reasoning effort in model settings and add regression test

Testing

  • make format
  • make lint
  • make mypy
  • make tests

@seratch seratch added enhancement New feature or request feature:core labels Aug 11, 2025
@serialx
Copy link

serialx commented Aug 13, 2025

I believe 0.2.6 already implements GPT-5 related features.

@seratch
Copy link
Member

seratch commented Aug 13, 2025

Yes, you're right. You can pass reasoning effort this way:

from agents import Agent, Runner, ModelSettings
from openai.types.shared import Reasoning

agent = Agent(
    name="Assistant",
    instructions="You are a helpful assistant",
    model="gpt-5",
    model_settings=ModelSettings(
        reasoning=Reasoning(effort="minimal"),
    ),
)

result = Runner.run_sync(agent, "Write a haiku about recursion in programming.")
print(result.final_output)

Thanks again for taking the time for this PR, and let us close this now.

@seratch seratch closed this Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature:core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add reasoning.effort="minimal" and "verbosity" params to ModelSettings
3 participants