Example

The following agent can use structured reasoning to solve complex problems:
from agno.agent import Agent
from agno.tools.reasoning import ReasoningTools

agent = Agent(
    instructions=[
        "You are a logical reasoning assistant that breaks down complex problems",
        "Use step-by-step thinking to analyze situations thoroughly",
        "Apply structured reasoning to reach well-founded conclusions",
        "Show your reasoning process clearly to help users understand your logic",
    ],
    tools=[ReasoningTools()],
)

agent.print_response("Analyze the pros and cons of remote work for software developers", stream=True)

Toolkit Params

ParameterTypeDefaultDescription
enable_thinkboolTrueEnable the think reasoning function.
enable_analyzeboolTrueEnable the analyze reasoning function.
instructionsOptional[str]NoneCustom instructions for reasoning behavior.
add_instructionsboolFalseWhether to add instructions to the agent.
add_few_shotboolFalseWhether to include few-shot examples.
few_shot_examplesOptional[str]NoneCustom few-shot examples for reasoning.

Toolkit Functions

FunctionDescription
thinkPerform step-by-step reasoning about a problem or situation.
analyzeConduct detailed analysis with structured reasoning steps.

Developer Resources