---
type: email
from: Rohan Mehta <notifications@github.com>
subject: Re: [openai/openai-agents-python] Add a simple gpt-oss example (PR

 #1440)
received: 2026-03-05 10:04:17
date_header: Wed, 13 Aug 2025 07:00:56 -0700
priority: normal
status: awaiting_approval
uid: 27454
---

## Email Content

**From:** Rohan Mehta <notifications@github.com>
**Subject:** Re: [openai/openai-agents-python] Add a simple gpt-oss example (PR

 #1440)
**Date:** Wed, 13 Aug 2025 07:00:56 -0700

### Body (preview)

@rm-openai approved this pull request.







> +async def main():

+    # Note that using a custom outputType for an agent may not work well with gpt-oss models.

+    # Consider going with the default "text" outputType.

+    # See also: https://github.com/openai/openai-agents-python/issues/1414

+    agent = Agent(

+        name="Assistant",

+        instructions="You're a helpful assistant. You provide a concise answer to the user's question.",

+        model=gpt_oss_model,

+    )

+

+    result = await Runner.run(agent, "Tell me about recursion in programming.")

+    print(result.final_output)

+

+

+if __name__ == "__main__":

+    asyncio.run(main())



might be nice to automatically start ollama here as well, but not required



-- 

Reply to this email directly or view it on GitHub:

https://github.com/openai/openai-agents-python/pull/1440#pullrequestreview-3116190204

You are receiving this because you are subscribed to this thread.



Message ID: <openai/openai-agents-python/pull/1440/review/3116190204@github.com>

---

## Suggested Actions
- [ ] Reply
- [ ] Archive
- [ ] Escalate
