agentle.agents.agent_config

Configuration module for Agentle agents.

This module defines the configuration options that control the behavior of agents in the Agentle framework. The primary class, AgentConfig, encapsulates settings related to generation parameters, tool call limits, and iteration bounds that govern how agents operate.

Example: ```python from agentle.agents.agent_config import AgentConfig from agentle.generations.models.generation.generation_config import GenerationConfig

# Create a custom configuration with specific settings config = AgentConfig(

generationConfig=GenerationConfig(temperature=0.7, top_p=0.95), maxToolCalls=20, maxIterations=15

)

# Use the configuration when creating an agent agent = Agent(

# … other parameters … config=config

)

Functions

Field()

!!! abstract "Usage Documentation"

model_validator()

!!! abstract "Usage Documentation"

Classes

AgentConfig(*[, generationConfig, ...])

Configuration class for Agentle agents.

BaseModel()

Alias for pydantic.BaseModel.

GenerationConfig(*[, temperature, ...])

Configuration parameters for controlling AI generation behavior.

GenerationConfigDict

Configuration parameters for controlling AI generation behavior.