Skip to content

Fix function_schema name override bug #872

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

Merged
merged 1 commit into from
Jun 16, 2025

Conversation

rm-openai
Copy link
Collaborator

@rm-openai rm-openai commented Jun 15, 2025

Summary

  • ensure name_override is always used in function_schema
  • test name override when docstring info is disabled

Testing

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

Resolves #860

https://chatgpt.com/codex/tasks/task_i_684f1cf885b08321b4dd3f4294e24ca2

@rm-openai rm-openai merged commit 6d2806f into main Jun 16, 2025
5 checks passed
@rm-openai rm-openai deleted the codex/fix-name_override-bug-in-function_schema branch June 16, 2025 14:50
niv-hertz pushed a commit to coralogix/openai-agents-python that referenced this pull request Jun 20, 2025
## Summary
- ensure `name_override` is always used in `function_schema`
- test name override when docstring info is disabled

## Testing
- `make format`
- `make lint`
- `make mypy`
- `make tests`

Resolves openai#860
------
https://chatgpt.com/codex/tasks/task_i_684f1cf885b08321b4dd3f4294e24ca2
niv-hertz added a commit to coralogix/openai-agents-python that referenced this pull request Jun 23, 2025
* Fix function_schema name override bug (openai#872)

## Summary
- ensure `name_override` is always used in `function_schema`
- test name override when docstring info is disabled

## Testing
- `make format`
- `make lint`
- `make mypy`
- `make tests`

Resolves openai#860
------
https://chatgpt.com/codex/tasks/task_i_684f1cf885b08321b4dd3f4294e24ca2

* adopted float instead of timedelta for timeout parameters (openai#874)

I replaced the `timedelta` parameters for MCP timeouts with `float`
values, addressing issue openai#845 .

Given that the MCP official repository has incorporated these changes in
[this PR](modelcontextprotocol/python-sdk#941),
updating the MCP version in openai-agents and specifying the timeouts as
floats should be enough.

* Prompts support (openai#876)

Add support for the new openai prompts feature.

* v0.0.18 (openai#878)

* Allow replacing AgentRunner and TraceProvider (openai#720)

* Prepare 0.0.19 release (openai#895)

* Added support for "return" handoffs (#1)

* Fix bug in Reasoning with `store=False`

---------

Co-authored-by: Rohan Mehta <rm@openai.com>
Co-authored-by: Daniele Morotti <58258368+DanieleMorotti@users.noreply.github.com>
Co-authored-by: pakrym-oai <pakrym@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

name_override not respected when use_docstring_info=False due to missing parentheses in func_name assignment in function_schema
2 participants