Skip to content

docs: describe Pydantic Field annotations for tool args#2436

Merged
seratch merged 2 commits intoopenai:mainfrom
haasonsaas:codex/2428-docs
Feb 10, 2026
Merged

docs: describe Pydantic Field annotations for tool args#2436
seratch merged 2 commits intoopenai:mainfrom
haasonsaas:codex/2428-docs

Conversation

@haasonsaas
Copy link
Contributor

Docs follow-up for #2428 / #2435.

Keeps documentation changes separate so runtime changes can merge independently from doc/release cadence.

Document both default-based and Annotated forms for constraining
and describing function-tool arguments (addresses review request
in PR openai#1124).
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Feb 7, 2026
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d36b46f6a5

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@haasonsaas
Copy link
Contributor Author

Docs PR is green and pairs nicely with #2435. Ready to merge when a maintainer can.

@seratch seratch added this to the 0.8.x milestone Feb 9, 2026
@seratch seratch merged commit 35a21e8 into openai:main Feb 10, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants