Skip to content
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

Raise error on more invalid function schemas #356

Merged
merged 1 commit into from
Mar 26, 2025
Merged

Raise error on more invalid function schemas #356

merged 1 commit into from
Mar 26, 2025

Conversation

rm-openai
Copy link
Collaborator

Towards #345

Summary:

Using a dict or Mapping isn't strict-mode compliant. But we were checking for the literal True whereas the value can also be an array, for example. Fix that.

Test Plan:

Unit tests

@rm-openai rm-openai requested a review from stevenheidel March 26, 2025 19:10
Towards #345

## Summary:
Using a `dict` or `Mapping` isn't strict-mode compliant. But we were checking for the literal `True` whereas the value can also be an array, for example. Fix that.

## Test Plan:

Unit tests
@rm-openai rm-openai merged commit 4854a74 into main Mar 26, 2025
10 checks passed
@rm-openai rm-openai deleted the rm/pr356 branch March 26, 2025 19:52
hankun11 pushed a commit to hankun11/openai-agents-python that referenced this pull request Apr 1, 2025
* upstream/main: (90 commits)
  Databricks MLflow tracing integration (openai#401)
  Add Langtrace to `tracing.md` (openai#371)
  Remove duplicate dependency definition of pynput (openai#367)
  Hotfix mcp example (openai#365)
  Expose the "store" parameter through ModelSettings (openai#357)
  Raise error on more invalid function schemas (openai#356)
  Tracing screenshot for MCP docs (openai#355)
  MCP example for SSE (openai#354)
  v0.0.7 (openai#353)
  Mark handoff span as errored when multiple handoffs are requested (openai#344)
  added readme, fixed typo
  fixing lint issues
  adding Git MCP server example
  [5/n] MCP tracing
  fix(examples): make sure audio playback finishes
  Remove Jupyter Notebook files from .gitignore
  linting
  Fix type ignore comment for agent check in get_all_edges function
  Refactor visualization functions to improve formatting and streamline edge generation
  Add start and end nodes to graph visualization and update edge generation
  ...
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