引导式测验 · 中等 等级
LLM 代理测验设计工具
测试工具名称和描述如何指导模型选择,为什么严格的模式和可操作的错误很重要,以及为什么太多的工具会伤害代理。
问题 1 的 8
模型实际上用什么来决定如何调用工具?
预览每个问题8 问题
当您参加测验时,就会出现答案和解释。
- 模型实际上用什么来决定如何调用工具?
- The tool's source code
- The name, description, schema and returned text
- The server's latency history
- The programming language the tool is written in
- 为什么代理可能使用 github_create_issue 和 jira_create_issue 等前缀?
- Prefixes make tools run faster
- APIs require prefixes
- They keep similar tools from different services apart
- They reduce the size of JSON Schema files
- 哪种参数设计最有可能产生正确的参数?
- An enum listing the allowed values
- A free-text string called 'value'
- An untyped field with no description
- A parameter named 'x'
- 什么样的工具才是好的错误消息?
- A numeric error code only
- A generic 'something went wrong'
- Nothing, so no tokens are spent
- It explains what went wrong and suggests what to try next
- 为什么添加许多工具会降低代理性能?
- Models can only call one tool per conversation
- Each definition takes up context, and overlapping tools make selection harder
- Tools stop working once there are more than five
- Tool count has no effect
- Compared with mirroring every API endpoint one-to-one, what does the guide recommend?
- Fewer, higher-level tools shaped around real tasks
- Exposing every endpoint so the agent has full coverage
- Using only one tool for everything
- Letting the model write its own HTTP requests
- Why should a tool paginate or truncate its output by default?
- To hide data from users
- Because models cannot read numbers
- To avoid filling the context window with low-value data
- Because JSON Schema requires it
- Why make tools idempotent or give them an idempotency key?
- It makes descriptions shorter
- It lets the model skip schemas
- It speeds up model inference
- A retried call will not create duplicate records