Merge branch 'main' into joaomdmoura/log

This commit is contained in:
Tony Kipkemboi
2025-05-21 11:24:10 -04:00
committed by GitHub
19 changed files with 108 additions and 34 deletions

View File

@@ -1,12 +1,14 @@
---
title: "Agent Reasoning"
title: Reasoning
description: "Learn how to enable and use agent reasoning to improve task execution."
icon: brain
---
# Agent Reasoning
## Overview
Agent reasoning is a feature that allows agents to reflect on a task and create a plan before execution. This helps agents approach tasks more methodically and ensures they're ready to perform the assigned work.
## How to Use Agent Reasoning
## Usage
To enable reasoning for an agent, simply set `reasoning=True` when creating the agent:
@@ -35,8 +37,13 @@ This process helps the agent break down complex tasks into manageable steps and
## Configuration Options
- `reasoning` (bool): Enable or disable reasoning (default: False)
- `max_reasoning_attempts` (int, optional): Maximum number of attempts to refine the plan before proceeding with execution. If None (default), the agent will continue refining until it's ready.
<ParamField body="reasoning" type="bool" default="False">
Enable or disable reasoning
</ParamField>
<ParamField body="max_reasoning_attempts" type="int" default="None">
Maximum number of attempts to refine the plan before proceeding with execution. If None (default), the agent will continue refining until it's ready.
</ParamField>
## Example