Version: latest
agrag.agents.settings.AgentSettings
Bases: BaseSettings
Configuration for the agent loop itself.
Attributes:
- recursion_limit (
int) – The maximum LangGraph step count before the loop stops and reports incomplete progress. Env:AGENT_RECURSION_LIMIT. - max_tool_calls (
int) – Maximum number of tool calls in one task run. Env:AGENT_MAX_TOOL_CALLS. - max_result_characters (
int) – Maximum text returned by one evidence fetch. Env:AGENT_MAX_RESULT_CHARACTERS. - request_deadline_seconds (
float) – Timeout in seconds for one evidence tool call. Env:AGENT_REQUEST_DEADLINE_SECONDS.
Env prefix: AGENT_.
max_result_characters
max_result_characters: int = Field(default=12000, ge=1)
max_tool_calls
max_tool_calls: int = Field(default=20, ge=1)
model_config
model_config = SettingsConfigDict(env_prefix='AGENT_', env_file='.env', extra='ignore', hide_input_in_errors=True)
recursion_limit
recursion_limit: int = Field(default=50, ge=1)
request_deadline_seconds
request_deadline_seconds: float = Field(default=30.0, gt=0)