discourse/plugins/discourse-ai/spec/models
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
..
discourse_ai/ai_bot FEATURE: Star AI bot conversations in sidebar (#39869) 2026-05-14 15:04:31 +10:00
ai_agent_mcp_server_spec.rb FEATURE: Add MCP server integration to AI agents (#38706) 2026-03-25 17:32:27 +11:00
ai_agent_multisite_spec.rb DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00
ai_agent_spec.rb FEATURE: Provider-native built-in tools for agents (web search) (#40809) 2026-06-16 14:37:51 -03:00
ai_api_request_stat_spec.rb FIX: Thinking could leak into topics in automation (#36239) 2025-11-26 11:41:09 +11:00
ai_artifact_key_value_spec.rb
ai_mcp_server_spec.rb FEATURE: Add advanced OAuth options for MCP servers (#38913) 2026-04-01 08:47:23 +11:00
ai_secret_spec.rb FEATURE: Add MCP server integration to AI agents (#38706) 2026-03-25 17:32:27 +11:00
ai_tool_action_spec.rb FEATURE: Add human-in-the-loop approval queue for AI agent tool actions (#38446) 2026-03-13 12:46:59 -03:00
ai_tool_spec.rb FEATURE: add crypto utilities to AI tool runner (#39343) 2026-04-21 14:25:18 +10:00
embedding_definition_spec.rb FIX: SQL Injection via pg_function AI (#38117) 2026-02-27 15:38:49 +01:00
inferred_concept_spec.rb
llm_credit_allocation_spec.rb FIX: Make credit limit reset time translatable (#37226) 2026-02-19 12:36:53 +01:00
llm_credit_daily_usage_spec.rb DEV: Move AI credits daily usage to it's own table (#36369) 2025-12-02 11:54:58 -08:00
llm_feature_credit_cost_spec.rb FEATURE: Hosted LLM credit system (#35162) 2025-10-14 07:48:20 -07:00
llm_model_spec.rb FEATURE: extract text from document uploads for LLM prompts (#39634) 2026-05-05 08:16:23 +10:00
llm_quota_spec.rb
llm_quota_usage_spec.rb
model_accuracy_spec.rb
rag_document_fragment_spec.rb DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00
reviewable_ai_chat_message_spec.rb
reviewable_ai_post_spec.rb FEATURE: Link staff action log entries to originating reviewable (#39519) 2026-04-30 09:15:45 +08:00
reviewable_ai_tool_action_spec.rb FIX: Scope ReviewableAiToolAction to target post's topic and category (#39716) 2026-05-05 10:24:19 -03:00
shared_ai_conversation_spec.rb FIX: Tighten security controls for artifact sharing (#40153) 2026-05-19 16:13:53 +10:00
user_option_spec.rb DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00