Tracking: expand first-class built-in (provider-executed) tools

未关闭
#369 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
冷清
技术栈
python

调研方向

首先阅读现有的 ToolBuiltIn 模型以及关联的子 issue #364、#365、#367 和 #366,以了解拟议的范围和 provider 限制。选定的子 issue 得到解决,或在记录决策后被明确关闭时,此跟踪 issue 即完成;它不指定要更改的具体文件或测试。

由索引模型根据 Issue 内容生成。

描述

ai-triage:needs-review

chatlas currently ships two first-class built-in (provider-executed) tools: tool_web_search() and tool_web_fetch() (#248), plus the generic ToolBuiltIn escape hatch (#134). This is a tracking issue for expanding that lineup, based on a July 2026 survey of the provider-executed tools offered by Anthropic (Messages API), OpenAI (Responses API), and Google (Gemini API / Vertex AI).

What the survey found

The three first-class providers have converged on a similar set of server-executed tools — the kind that fit the existing ToolBuiltIn model, where the provider runs the tool and chatlas only needs to send a config and parse result content:

Tool Anthropic OpenAI (Responses) Google Gemini
Web search ✅ GA (shipped) ✅ GA (shipped) ✅ GA (shipped)
Web fetch / URL context ✅ GA (shipped) ❌ ✅ GA (shipped)
Code execution ✅ GA ✅ GA (code_interpreter) ✅ GA
Remote MCP connector ✅ beta ✅ GA (mcp) ⚠️ experimental (not Vertex)
File search (hosted RAG) ❌ ✅ GA ✅ GA (not Vertex)
Tool search / deferred tools ✅ GA ✅ GA ❌
Image generation ❌ ✅ GA ❌ (separate models)
Maps grounding ❌ ❌ ✅ GA

A second family is provider-defined but client-executed (Anthropic: memory / bash / text editor / computer use; OpenAI: computer use / apply_patch / local shell; Google: computer use). These have official schemas but the application must execute them, so they don't fit ToolBuiltIn — supporting them means shipping an execution harness, a much larger design.

Sub-issues

Roughly by priority:

  • #364 — tool_code_execution(): the only remaining server tool that is GA across all three providers
  • #365 — server-side MCP connector: complements the existing client-side register_mcp_tools_* support
  • #367 — make built-in tools fail loudly on providers/platforms that don't support them (pre-existing bug; grows in importance with each new tool)
  • #366 — (decision) file search / provider-hosted RAG: in tension with the "no RAG primitives" non-goal from #360; may close as "no"

Explicitly not planned (for now)

  • Computer use, bash, text editor, apply-patch, shell — client-executed; chatlas would have to ship a screenshot/action or command-execution harness. Out of scope for a chat client.
  • Image generation (OpenAI-only) and Maps grounding (Gemini-only) — single-provider; the ToolBuiltIn escape hatch already handles them (image generation is the worked example in #134). A docs recipe may be worth more than first-class wrappers.
  • Anthropic tool search / advisor tool — too new/niche; revisit if users accumulate large deferred-tool catalogs.
  • Anthropic memory tool — client-executed but cheap to back with a filesystem; interesting, but a different pattern from ToolBuiltIn. Revisit separately if there's demand.

Cross-provider caveats that affect all of the above

  • Amazon Bedrock supports essentially none of Anthropic's server tools; Vertex AI supports only basic Anthropic web search. #367 covers surfacing this early.
  • Gemini models before Gemini 3 can't mix built-in tools with custom function declarations in one request.
  • ellmer currently has no code execution or structured citation model, so this is an area where chatlas leads; worth coordinating naming/design with the ellmer team as these land.
主要语言
Python
星标
179
派生
32
平均合并
1 天 3 小时
30 天内合并 PR
10

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

posit-dev/chatlas 的其他 Issue

查看 posit-dev/chatlas 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。