Skip to main content
The ReasoningDuo class implements a dual-agent reasoning system that combines a reasoning agent and a main agent to provide well-thought-out responses to complex tasks. This architecture separates the reasoning process from the final response generation.

Architecture

Parameters

Methods

Quick Start

Examples

Mathematical Analysis

Financial Analysis

Customizing Agent Behavior

Batch Processing

Best Practices

  1. Task Formulation: Be specific and clear in task descriptions. Include relevant context and constraints.
  2. Performance Optimization: Use batched_run for multiple related tasks. Monitor agent outputs for consistency.
  3. Model Selection: Adjust model parameters based on task complexity.