Skip to main content
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.

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)