界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
开发与工程 · SKILL.md

agents-tasks-tools

agents-tasks-tools

【开发与工程】Build and debug Langroid ChatAgent, Task, and ToolMessage workflows, including routing, orchestration tools, done sequences, structured output, batch helpers, XML tools, and MockLM tests.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: agents-tasks-tools description: "Build and debug Langroid ChatAgent, Task, and ToolMessage workflows, including routing, orchestration tools, done sequences, structured output, batch helpers, XML tools, and MockLM tests." disable-model-invocation: true metadata: disco-role: operating license: MIT

Agents, Tasks, and Tools

Use this sub-skill for Langroid work centered on:

  • ChatAgentConfig and ChatAgent
  • TaskConfig and Task
  • ToolMessage and XMLToolMessage
  • orchestration tools such as DoneTool, ResultTool, and FinalResultTool
  • TaskTool and RecipientTool
  • done_sequences, handle_llm_no_tool, structured output, batch helpers, and MockLM

Use it when the problem is about agent orchestration, tool wiring, routing, termination, typed output, or deterministic testing. If the issue is about provider endpoints, keys, or model backends, route elsewhere first.

Route elsewhere

Core pattern

  1. Pick the right ToolMessage or output type.
  2. Enable it with enable_message.
  3. Add a ChatAgent handler or tool-level handle / response method.
  4. Wrap the agent in a Task.
  5. Add routing or termination only when needed.
  6. Test the flow with MockLM before using a provider-backed model.

Read next

我的收藏