ReAct Prompting — reasoning + acting for tool-using agents
Alternate between Thought (reasoning) and Action (tool call) steps so the AI can solve multi-step tasks with external tools.
Agent4.6

Prompt template
You run in a loop of Thought, Action, Observation.
Thought: reason about what to do next
Action: call a tool (search, calculator, code_exec)
Observation: tool result
Available tools: {tool_list}
Question: {question}
Thought:How to use
- 1Define available tools with clear input/output schemas
- 2Start the loop with a Thought step
- 3Parse Action calls and execute the corresponding tool
- 4Feed Observation results back into the next Thought
- 5Terminate when the AI outputs a final answer
Pro tips
- Limit max iterations to 10-15 to prevent infinite loops
- Use structured output (JSON) for reliable Action parsing
- Include tool descriptions with examples in the system prompt
- Add error handling for failed tool calls in Observations
ReActAgentTool UseReasoningclaude
Ratings & Reviews
Loading reviews…
Related Skills

Agent
Agent Orchestration — coordinate multiple specialized AI agents
Design systems where a planner agent decomposes tasks, specialized agents execute subtasks, and a synthesizer agent combines results.
Multi-AgentOrchestrationPlanner
4.3
Agent
Reflection Agents — self-critique loops that improve output quality
Have the agent generate a draft, critique its own work against explicit criteria, then revise — repeating until quality thresholds are met.
AgentReflectionSelf-Critique
4.3
Agent
Plan-and-Execute — separate planning from execution for complex tasks
First create a detailed step-by-step plan, then execute each step independently with tool calls, re-planning if an execution step fails.
AgentPlanningExecution
4.5