Tools transform agents from thinkers into doers. They allow agents to search the web, read files, call APIs, execute code, and interact with external systems. Let’s explore how to give your agents superpowers.
agents: researcher: type: "llm" model: "claude-3-5-sonnet-20241022" tools: ["web-search", "calculator", "file-reader"] prompts: system: | You are a research assistant with access to tools. Use them to find accurate, up-to-date information.
agents: researcher: type: "llm" model: "claude-3-5-sonnet-20241022" tools: ["web-search", "calculator", "file-writer"] prompts: system: | You are a research assistant. When given a topic: 1. Search for current information 2. Verify facts from multiple sources 3. Calculate any relevant statistics 4. Save findings to a markdown file Always cite sources and show calculations.jobs: research-task: execution: agents: - id: "researcher" task: "Research {topic} and create a report"
agents: pipeline-agent: type: "llm" tools: ["web-search", "file-writer", "email-sender"] prompts: system: | For research requests: 1. Search for information (web-search) 2. Save findings to file (file-writer) 3. Email the report (email-sender) Execute tools in sequence, using output from each step as input for the next.
agents: adaptive-agent: type: "llm" tools: ["quick-search", "deep-search", "expert-system"] prompts: system: | Choose tools based on query complexity: - Simple questions: use quick-search - Research tasks: use deep-search - Technical problems: use expert-system Explain your tool choice before using.
prompts: system: | Available tools and their uses: - web-search: Find current information online - calculator: Perform precise calculations - file-reader: Access local data files Always explain which tool you're using and why.
prompts: system: | If a tool fails: 1. Explain what went wrong 2. Try alternative approaches 3. Ask for clarification if needed 4. Never claim false results
agents: advanced-researcher: type: "llm" model: "claude-3-5-sonnet-20241022" tools: mcp: servers: web-search: transport: type: "stdio" command: "mcp-search" config: search_depth: "comprehensive" analyzer: transport: type: "stdio" command: "mcp-analyzer" report-builder: transport: type: "stdio" command: "mcp-reports" prompts: system: | You are an advanced research system. For each query: Phase 1: Discovery - Use web-search to find initial sources - Identify key themes and questions Phase 2: Deep Dive - Use analyzer to extract insights - Cross-reference multiple sources Phase 3: Synthesis - Use report-builder to create output - Include citations and confidence levels Always show your research process.