Skip to content

Conversation

rm-openai
Copy link
Collaborator

@rm-openai rm-openai commented Apr 17, 2025

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=...)

@rm-openai rm-openai merged commit e3698f3 into main Apr 21, 2025
10 checks passed
@rm-openai rm-openai deleted the rm/pr539 branch April 21, 2025 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants