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.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- agents-tasks-tools
- license
- MIT
- metadata
- { "disco-role": "operating" }
- 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
02 资源文件 4
- 参考文档references/api-reference.md8.3 KB
- 参考文档references/testing-patterns.md4.9 KB
- 参考文档references/troubleshooting.md4.1 KB
- 参考文档references/workflows.md7.0 KB
03 SKILL.md 正文
Agents, Tasks, and Tools
Use this sub-skill for Langroid work centered on:
ChatAgentConfigandChatAgentTaskConfigandTaskToolMessageandXMLToolMessage- orchestration tools such as
DoneTool,ResultTool, andFinalResultTool TaskToolandRecipientTooldone_sequences,handle_llm_no_tool, structured output, batch helpers, andMockLM
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
- Provider endpoints, keys, or model wiring → llm-provider-config
- RAG, document chat, or retrieval flows → retrieval-doc-chat
- SQL, table, or graph workflows → data-sql-graph-agents
- MCP or Chainlit integrations → integrations-mcp-chainlit
Core pattern
- Pick the right
ToolMessageor output type. - Enable it with
enable_message. - Add a
ChatAgenthandler or tool-levelhandle/responsemethod. - Wrap the agent in a
Task. - Add routing or termination only when needed.
- Test the flow with
MockLMbefore using a provider-backed model.
Read next
04 同仓库更多 Skills
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
obsidian-clipper-template-creator
Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.
python-api
Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP/mAP semantics, and source-style import diagnostics.
file-evaluation
Folder-based PASCAL VOC AP/mAP evaluation from ground-truth and detection text files.
object-detection-metrics
Guides legacy Object-Detection-Metrics PASCAL VOC AP/mAP evaluation from detection text folders and direct Python API classes.
nx-workspace-patterns
Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.