agents-tools
Guides LazyLLM function-call tools, ToolManager, agents, sandbox metadata, SkillManager, MCP, search, SQL, HTTP, and built-in tools.
- License 许可
- Apache-2.0
- 最近更新
- 2026-10-08
- Stars
- ★ 11
- Forks
- 3
01 前言 Front Matter
- name
- agents-tools
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Guides LazyLLM function-call tools, ToolManager, agents, sandbox metadata, SkillManager, MCP, search, SQL, HTTP, and built-in tools.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/agent-tool-workflows.md2.9 KB
- 参考文档references/mcp-and-skills.md2.0 KB
- 参考文档references/troubleshooting.md2.1 KB
03 SKILL.md 正文
LazyLLM Agents and Tools
Use this sub-skill for LazyLLM function-call tools, fc_register, ToolManager, tool metadata, sandbox flags, file parameters, built-in tools, SQL/HTTP/search tools, ReactAgent, ReWOOAgent, PlanAndSolveAgent, SkillManager, skills CLI, and MCP integration.
Start here when
- The task mentions
fc_register,lazyllm.tool,ToolManager,execute_in_sandbox, tool schemas,input_files_parm, oroutput_files_parm. - The user wants to build a React/ReWOO/PlanAndSolve agent or debug tool-calling traces.
- The task uses
lazyllm skillscommands,SkillManager, repo/user skill directories, or skills agent examples. - The task mentions MCP clients/servers,
deploy mcp_server, npm/npx, or external tool processes. - The task asks about built-in search, SQL manager, HTTP nodes, sandboxed execution, or PowerMemory-style examples.
Files to read
- agent-tool-workflows.md for deterministic tool registration and agent planning recipes.
- mcp-and-skills.md for SkillManager, skills CLI, and MCP boundaries.
- troubleshooting.md for schema, sandbox, MCP, provider, and tool-call errors.
- scripts/tool_agent_smoke.py for a no-network check of tool registration metadata.
Safe workflow
- Register/inspect tools without an LLM first. Use
fc_registerand verify metadata. - Choose agent class only after tool contracts are stable.
ReactAgent: iterative tool use with retries.ReWOOAgent: plan then solve with tool observations.PlanAndSolveAgent: planning and solving roles with optional separate LLMs.
- Separate schema from execution. Tool registration and schema checks are safe; executing shell, HTTP, SQL, search, or MCP tools can be side-effecting.
- Treat LLM calls as optional. Agent reasoning needs an LLM/provider or local model configured by model-deployment.
- Treat MCP as external-process work. Do not run npm/npx/MCP servers unless the user approves the command and environment.
Verified signatures to remember
fc_register(f, *, rewrite_func=None, **kwargs)registers callable tools and metadata.ToolManager(tools, return_trace=False, sandbox=None)manages callable or named tools.SkillManager(dir=None, skills=None, max_skill_md_bytes=None, fs=None, sandbox=None)loads LazyLLM skills.ReactAgent(llm, tools=None, max_retries=5, return_trace=False, prompt=None, stream=False, return_last_tool_calls=False, skills=None, desc='', workspace=None, sandbox=None, force_summarize=False, force_summarize_context='', keep_full_turns=0, fs=None, skills_dir=None, enable_builtin_tools=True, extra_stop_condition=None, on_max_retries=None).ReWOOAgentandPlanAndSolveAgentaccept optionalplan_llm,solve_llm,tools, tracing, streaming, skills, sandbox, fs, and built-in tool controls.
Tool metadata facts
LazyLLM tests verify:
execute_in_sandboxdefaults to true and can be disabled.input_files_parm,output_files_parm, and staticoutput_filesmetadata are preserved.- unsupported
fc_registerparameters raise assertions. - writer/search/SQL/HTTP tools have local contract tests and should be validated before real external calls.
Handoff checklist
When completing an agent/tool task, provide:
- tool names, docstrings, parameter schema expectations, and sandbox/file metadata,
- whether the tool was registered and inspected without LLM calls,
- selected agent class and LLM/backend status,
- explicit side-effect classification for shell, HTTP, SQL, search, MCP, or remote services,
- local smoke command and optional/unrun external verification.
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.