agent-contracts-tool-use-rag
Implement tool-using or retrieval-style nodes with services, dependency injection, and safe LLM context building.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Implement tool-using or retrieval-style nodes with services, dependency injection, and safe LLM context building.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Build a production-minded AI agent using agent-contracts (contracts, slices, validation, graph, runtime, CLI tooling).
Build an API-oriented agent using AgentRuntime/StreamingRuntime with predictable request/response slices and session support.
Make contract-driven agents safe to change with strict validation, architecture docs, and contract diffs in CI.
Build question/answer style agents using InteractiveNode, explicit routing, and workflow slices.
Tune routing with TriggerCondition priorities, LLM hints, context_builder, and traceable decisions.
| name | agent-contracts-tool-use-rag |
| description | Implement tool-using or retrieval-style nodes with services, dependency injection, and safe LLM context building. |
| metadata | {"short-description":"Tools/RAG patterns"} |
Use this skill when your nodes call external services (DB, search, HTTP APIs) or do retrieval-style work.
NodeContract.services (and requires_llm when needed).node_cls(llm=..., my_service=...)), ordependency_provider in build_graph_from_registry(...).context_builder only when needed.services=[...] to NodeContract and use those attributes in execute().ContractValidator(known_services=..., strict=True) in CI.docs/core_concepts.md (Context Builder / Sanitization)docs/skills/official/agent-contracts-tool-use-rag/references/di_and_testing.md