Skip to content

feat: add web search gateway tool#85

Draft
franciscojavierarceo wants to merge 2 commits into
mainfrom
codex/web-search-tool
Draft

feat: add web search gateway tool#85
franciscojavierarceo wants to merge 2 commits into
mainfrom
codex/web-search-tool

Conversation

@franciscojavierarceo

Copy link
Copy Markdown
Collaborator

Summary

  • Adds gateway-managed web_search_preview support backed by You.com via YOU_API_KEY, normalizing the tool to the web_search function shape expected by the model backend.
  • Executes web search calls server-side, feeds function_call_output back into follow-up model rounds, and returns OpenAI-compatible web_search_call output items to clients.
  • Emits web search lifecycle SSE events during streaming tool loops, executes multiple gateway tool calls concurrently, and aligns the gateway tool loop limit to 10 rounds.
  • Caveat: this PR uses mocked LLM and You.com integration coverage. A follow-up PR will add recorded cassettes once we have a live gpt-oss/vLLM environment available for end-to-end recordings.

Test Plan

  • cargo test
  • cargo clippy --all-targets -- -D warnings
  • cargo fmt -- --check
  • git diff --check
  • Not run: live You.com API smoke test because YOU_API_KEY was unset in the local environment.

Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
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.

1 participant