dspy-react-agent-builder

Solid

This skill should be used when the user asks to "create a ReAct agent", "build an agent with tools", "implement tool-calling agent", "use dspy.ReAct", mentions "agent with tools", "reasoning and acting", "multi-step agent", "agent optimization with GEPA", or needs to build production agents that use tools to solve complex tasks.

AI & Automation 78 stars 10 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 90/100

Stars 20%
63
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# DSPy ReAct Agent Builder ## Goal Build production-quality ReAct agents that use tools to solve complex multi-step tasks with reasoning, acting, and error handling. ## When to Use - Multi-step tasks requiring tool use - Search + reasoning workflows - Complex question answering with external data - Tasks needing calculation, retrieval, or API calls ## Related Skills - Optimize agents: [dspy-gepa-reflective](../dspy-gepa-reflective/SKILL.md) - Connect MCP tools: [dspy-mcp-tool-integration](../dspy-mcp-tool-integration/SKILL.md) - Configure native tool calling: [dspy-adapters-multimodal](../dspy-adapters-multimodal/SKILL.md) - Define signatures: [dspy-signature-designer](../dspy-signature-designer/SKILL.md) - Evaluate performance: [dspy-evaluation-suite](../dspy-evaluation-suite/SKILL.md) ## Inputs | Input | Type | Description | |-------|------|-------------| | `signature` | `str` | Task signature (e.g., "question -> answer") | | `tools` | `list[callable]` | Available tools/functions | | `max_iters` | `int` | Max reasoning steps (default: 20) | ## Outputs | Output | Type | Description | |--------|------|-------------| | `agent` | `dspy.ReAct` | Configured ReAct agent | ## Workflow ### Phase 1: Define Tools Tools are Python functions with clear docstrings. The agent uses docstrings to understand tool capabilities: ```python import dspy def search(query: str) -> list[str]: """Search knowledge base for relevant information. Args: query: Search query...

Details

Author
OmidZamani
Repository
OmidZamani/dspy-skills
Created
5 months ago
Last Updated
1 weeks ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category