feat: add Google Search and Perplexity Search agent tool types - #439
Closed
esafwan wants to merge 1 commit into
Closed
feat: add Google Search and Perplexity Search agent tool types#439esafwan wants to merge 1 commit into
esafwan wants to merge 1 commit into
Conversation
Re-implements the features from old PRs #4 and #5 against the current LiteLLM-based develop branch. - New 'Google Search' and 'Perplexity Search' types on Agent Tool Function, with JSON schemas for their query parameters - handle_google_search: Google Programmable Search Engine via site_config keys google_pse_api_key / google_pse_engine_id; returns compact {title, link, snippet} results - handle_perplexity_search: LiteLLM completion with perplexity/sonar using perplexity_api_key from site_config (fallback: PERPLEXITY_API_KEY env); returns grounded answer with citations - Wired into sdk_tools.create_agent_tools, flow_tool_executor type map, app seeding VALID_TYPES, frontend ToolType union and tool templates
This was referenced Jul 26, 2026
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Re-implements the search-tool features from the stale PRs #4 and #5 against current
develop(those PRs targeted the pre-renameagentflo/tree and were unmergeable). Supersedes/closes #4 and #5.Changes
site_config.json:google_pse_api_key+google_pse_engine_id. Returns top-N{title, link, snippet}results.perplexity/sonar). Key fromperplexity_api_keyin site_config, falling back toPERPLEXITY_API_KEYenv (matches existing provider key routing inhuf/ai/providers/litellm.py). Returns answer + citations.typesoptions,prepare_function_paramsbranches,sdk_tools.create_agent_toolsmapping,flow_tool_executorhandler map,app_seeding/loaders.pyVALID_TYPES, frontendToolTypeunion +toolTemplates.json(new "Web Search" template).Validation
python3 -m compileallon edited modules; edited JSON files parse.yarn typecheckclean.