rb6221

rb6221

V2EX member #152333, joined on 2015-12-21 16:30:31 +08:00
Today's activity rank 9448
Per rb6221's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
rb6221's recent replies
deepseek V4 是对 tool calling 优化的没那么好,之前见过有人写了个 rule 来针对 deepseek 调优,能明显提升调用效果:

# Tool Calling Rules

When calling tools, follow these rules strictly. They override any conflicting habits from chat training.

## Argument formatting

1. **Omit optional fields you don't need.** Do not send `null`, `""`, `{}`, or `[]` as a placeholder. If a field is optional and you have no value, leave it out of the JSON entirely.

2. **Match the container type exactly.**
- Array fields take JSON arrays: `["a", "b"]`, never `"[\"a\",\"b\"]"` (string), never `{}` (object), never `"foo"` (bare string).
- Single-element arrays still need brackets: `["foo"]`, not `"foo"`.
- Object fields take JSON objects, not arrays or strings.

3. **Strings are raw strings.** Do not wrap values in extra quotes, code fences, or markdown.

4. **Numbers and booleans are unquoted.** `30`, not `"30"`. `true`, not `"true"`.

## Paths and identifiers

5. **File paths, URLs, IDs, and similar fields go to system functions, not chat output.** Never format them as markdown links, never wrap them in backticks, never add explanatory parentheses.

Correct: `"/Users/me/notes.md"`
Wrong: `"[notes.md](notes.md)"`
Wrong: `` "`/Users/me/notes.md`" ``
Wrong: `"/Users/me/notes.md (the notes file)"`

6. **If a tool description says "path", treat it as input to a filesystem call.** No formatting, no decoration.

## Related parameters

7. **When a tool has paired parameters (e.g., offset + limit, start + end, from + to), provide both or neither.** Read the description — if two fields work together, half the pair often produces an error.

## Recovery

8. **If a tool returns a validation error, read the error message carefully and fix only what it complains about.** Do not rewrite the whole call. Do not retry the same arguments.

9. **If a tool returns a "Note:" with a defaulted value, that's informational, not an error.** Continue the task. If the default is wrong, retry with the correct explicit value.

## Tool selection

10. **Use the tool whose description matches your intent most specifically.** Don't reach for `shellCommand` if a dedicated tool exists. Don't reach for `execute_code` for things a single tool call can handle.
发短信他要花钱,用 APP 刷了日活,有时候还能播广告,是他赚了钱,那能一样吗
llama.cpp 一直是能跑的,我之前还打算在我的闲置 Android 机部署 gemma4 呢,后来操作了一下发现我设备是 32 位的,他只支持 64 位😅
9 days ago
Replied to a topic by Cheez 程序员 在中国推广无密码还有哪些阻力?
bum 不明白你想表达什么,你说的这些难道在国内没有推广开吗?
15 days ago
Replied to a topic by livin2 OpenAI 5.3-codex 下架了
cursor 好像还有 我也挺喜欢用的 日常编码任务主力
不是说在和老马谈合作吗,我还指望着价格打下来呢,这个确实是在不封号和模型能力做到了平衡,产品易用性也是第一梯队没得说,就是贵了点
所以说商家做活动都要说一句最终解释权归商家所有
丢几张截图给 AI 帮你深度分析一下就知道了
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1283 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 23:50 · PVG 07:50 · LAX 16:50 · JFK 19:50
♥ Do have faith in what you're doing.