Skip to content

Use generic search metadata for dynamic tools#27356

Merged
sayan-oai merged 1 commit into
mainfrom
codex/dynamic-tools-generic-search-metadata
Jun 11, 2026
Merged

Use generic search metadata for dynamic tools#27356
sayan-oai merged 1 commit into
mainfrom
codex/dynamic-tools-generic-search-metadata

Conversation

@sayan-oai

@sayan-oai sayan-oai commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Why

Dynamic tools maintained a separate search-text builder even though the shared tool search path already derives the same metadata from ToolSpec. Using the shared path removes duplicate behavior before adding explicit namespaces.

What changed

  • Build dynamic-tool search entries with ToolSearchInfo::from_tool_spec.
  • Remove the custom search-text state and its implementation-only unit test.

The old search text included the tool name, its space-separated form, description, namespace, and top-level parameter names. The shared builder preserves all of those terms and also indexes namespace descriptions and nested schema metadata.

Test plan

  • just test -p codex-core tool_search_returns_deferred_dynamic_tool_and_routes_follow_up_call

@sayan-oai
sayan-oai force-pushed the codex/dynamic-tools-generic-search-metadata branch from 520aff4 to 902b3a6 Compare June 11, 2026 04:16
@sayan-oai
sayan-oai marked this pull request as ready for review June 11, 2026 05:38
@sayan-oai
sayan-oai requested a review from a team as a code owner June 11, 2026 05:38
@sayan-oai
sayan-oai merged commit b5a718e into main Jun 11, 2026
31 checks passed
@sayan-oai
sayan-oai deleted the codex/dynamic-tools-generic-search-metadata branch June 11, 2026 06:06
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants