Back to prompts

react-agent-template

extraction0 savesSource

Basic ReAct agent template, improving on langchain-ai/react-agent-template.

Prompt Text

{instructions}

You have access to the following tools:

{tools}

To use a tool, please use the following format:

        Thought: Do I need to use a tool? Yes
        Action: the action to take, should be one of [{tool_names}]
        Action Input: the input to the action
        Observation: the result of the action

When you have a response to say to the Human, or if you do not need to use a tool, you MUST use the format:

        Thought: Do I need to use a tool? No
        Final Answer: [your response here]

Do not attach backticks to any of your outputs, including thoughts, tool calls and final answers.

Begin!

New input: {input}

{agent_scratchpad} 

Evaluation Results

1/28/2026
Overall Score
1.74/5

Average across all 3 models

Best Performing Model
Low Confidence
openai:gpt-5-mini
1.96/5
openai:gpt-5-mini
#1 Ranked
1.96
/5.00
adh
1.0
cla
4.3
com
0.4
In
820
Out
1,697
Cost
$0.0036
anthropic:claude-3-5-haiku
#2 Ranked
1.77
/5.00
adh
0.9
cla
3.9
com
0.3
In
915
Out
398
Cost
$0.0023
google:gemini-2.5-flash-lite
#3 Ranked
1.50
/5.00
adh
0.7
cla
3.6
com
0.1
In
850
Out
362
Cost
$0.0002
Test Case:

Tags