openai-agents-python/examples/basic
Rohan Mehta e3698f32b1
Enable non-strict output types (#539)
See #528, some folks are having issues because their output types are
not strict-compatible.

My approach was:
1. Create `AgentOutputSchemaBase`, which represents the base methods for
an output type - the json schema + validation
2. Make the existing `AgentOutputSchema` subclass
`AgentOutputSchemaBase`
3. Allow users to pass a `AgentOutputSchemaBase` to
`Agent(output_type=...)`
2025-04-21 11:58:36 -04:00
..
media Examples for image inputs (#553) 2025-04-21 11:14:25 -04:00
agent_lifecycle_example.py fix typo in agent_lifecycle_example.py 2025-03-14 19:14:26 +08:00
dynamic_system_prompt.py Initial commit 2025-03-11 09:42:28 -07:00
hello_world.py Initial commit 2025-03-11 09:42:28 -07:00
hello_world_jupyter.py utils directory 2025-03-16 18:48:45 -04:00
lifecycle_example.py fix typos in /examples 2025-03-20 11:23:57 +01:00
local_image.py Examples for image inputs (#553) 2025-04-21 11:14:25 -04:00
non_strict_output_type.py Enable non-strict output types (#539) 2025-04-21 11:58:36 -04:00
previous_response_id.py Examples and tests for previous_response_id (#512) 2025-04-15 12:46:31 -04:00
remote_image.py Examples for image inputs (#553) 2025-04-21 11:14:25 -04:00
stream_items.py Initial commit 2025-03-11 09:42:28 -07:00
stream_text.py Initial commit 2025-03-11 09:42:28 -07:00
tools.py Introduce tool_use_behavior on agents 2025-03-18 21:55:12 -04:00