capability-probe

command
v0.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 22, 2026 License: None detected not legal advice Imports: 0 Imported by: 0

Documentation

Overview

capability-probe - Provider 能力探测工具.

向各 provider/model 组合发送最小化探测请求,检测实际支持的能力, 输出能力矩阵(Markdown 表格).

能力探测项:

  • streaming 基础 SSE 流式响应
  • thinking 扩展思考(thinking block 出现在响应中)
  • tool_use 工具调用(模型返回 tool_use block)
  • structured_out 结构化 JSON 输出(响应符合 JSON schema)
  • caching Prompt Cache 命中(cache_read_tokens > 0)
  • schema_ref 工具 InputSchema 中 $ref 引用是否被正确解析(部分模型拒绝)
  • tool_count 模型实际可处理的最大工具数量(触发拒绝时的上限)

抽包 (ADR-0018): 探测 + 合并逻辑搬进 core/pkg/capability, 本命令退成 薄壳 — 保留 flag / loadEnvFile / 实例构造 / 持久化缓存 / printMatrix / main 循环, 对每个 target 调 capability.ProbeModel.

Extracted (ADR-0018): the probe + merge logic moved into core/pkg/capability; this command is a thin wrapper -- it keeps flag parsing / loadEnvFile / provider construction / persistence cache / printMatrix / the main loop, and calls capability.ProbeModel per target.

使用:

source .env && go run ./cmd/capability-probe/

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL