Skip to content

feat(responses): add function tool helper with description#669

Open
MukundaKatta wants to merge 1 commit into
openai:mainfrom
MukundaKatta:codex/function-tool-description-helper
Open

feat(responses): add function tool helper with description#669
MukundaKatta wants to merge 1 commit into
openai:mainfrom
MukundaKatta:codex/function-tool-description-helper

Conversation

@MukundaKatta
Copy link
Copy Markdown

Summary

  • add ToolParamOfFunctionWithDescription for constructing function tools with descriptions
  • preserve the existing ToolParamOfFunction signature for backwards compatibility
  • add a marshal regression test covering the description field

Fixes #583

Testing

  • go test ./responses -run TestToolParamOfFunctionWithDescription -count=1
  • go test ./... -run TestToolParamOfFunctionWithDescription -count=1

@MukundaKatta MukundaKatta requested a review from a team as a code owner May 15, 2026 03:04
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.

FunctionToolParam constructor missing the "description" parameter

1 participant