Skip to content

feat: add SDK-only custom data for tool outputs#3486

Open
seratch wants to merge 2 commits into
mainfrom
feat/tool-output-custom-data
Open

feat: add SDK-only custom data for tool outputs#3486
seratch wants to merge 2 commits into
mainfrom
feat/tool-output-custom-data

Conversation

@seratch
Copy link
Copy Markdown
Member

@seratch seratch commented May 22, 2026

This pull request adds SDK-only custom_data support to tool output items so applications can attach renderer hints, IDs, or other JSON-compatible metadata without sending it back to the model.

It adds extractor callbacks for function tools, local MCP server tools, custom tools, ComputerTool, and ApplyPatchTool, persists the data through RunState. ShellTool remains unchanged because it already has shell-specific provider_data, and deprecated LocalShellTool is not extended.

@seratch seratch added this to the 0.17.x milestone May 22, 2026
Copy link
Copy Markdown

@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: 12acfa4abc

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/agents/run_internal/tool_actions.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant