discourse/plugins/discourse-ai/spec/requests
Rafael dos Santos Silva bc39aacc3d
FEATURE: Provider-native built-in tools for agents (web search) (#40809)
Adds a fourth kind of agent tool: provider-native built-in tools that
the
LLM provider executes server-side, rather than tools Discourse runs and
feeds back. The first one is web search, supported on Gemini (Google
Search
grounding), OpenAI (web search via the Responses API) and Anthropic
(Claude
web search).

Native tools are stored on the agent's `tools` column with a `native-`
prefix, flow to the prompt as a separate `native_tools` list (never as
runnable Tool classes), and each provider dialect renders them into its
own
request payload. Response processors already ignore the server-side
tool/grounding blocks, so the bot loop never tries to execute them.

They are only selectable when the agent forces a default LLM whose
provider
supports the tool; this is enforced both in the editor UI (filtered by
the
selected LLM's `supported_native_tools`) and by server-side validation.

Also fixes the Gemini endpoint sending `function_calling_config` without
any
`function_declarations`, which the API rejects when only native tools
are
present.

---------

Co-authored-by: Sam Saffron <sam.saffron@gmail.com>
2026-06-16 14:37:51 -03:00
..
admin FEATURE: Provider-native built-in tools for agents (web search) (#40809) 2026-06-16 14:37:51 -03:00
ai_bot SECURITY: restrict visibility of ai bot conversations 2026-05-19 00:26:04 +01:00
ai_helper FIX: Respect category tag restrictions when suggesting tags (#40545) 2026-06-04 09:11:56 +02:00
discord DEV: Restore/remove/fix/update AI-related specs (#39539) 2026-04-27 00:20:33 +02:00
discover DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00
embeddings DEV: Tidy plugin API key scope resource names (#38640) 2026-03-17 13:03:42 +11:00
sentiment SECURITY: Scope sentiment posts endpoint to allowed categories 2026-03-31 15:12:45 +01:00
summarization FIX: State-changing summary generation is exposed via GET (CSRFable navigation) (#40232) 2026-05-22 13:59:21 -03:00
translation FIX: Ensure "Translate Post" button does not silently skip bots (#38168) 2026-03-03 22:18:37 +08:00
ai_credits_controller_spec.rb DEV: Fix a flake in credit_status_checker_spec (#40092) 2026-05-16 18:46:01 +02:00
composer_controller_spec.rb FIX: Suppress composer mention warning for AI bot users (#39986) 2026-05-13 18:44:14 +02:00
mcp_oauth_controller_spec.rb FIX: Improve MCP OAuth callback error handling (#38889) 2026-03-27 07:34:24 +11:00
topic_spec.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00