Skip to main content

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_research_attempts (int) – The maximum number of times the planner may re-delegate to the researcher after receiving INSUFFICIENT from the verifier. The planner's initial decomposition into sub-questions is not bounded by this field; the LangGraph recursion limit remains the backstop for that pass. Env: AGENT_MAX_RESEARCH_ATTEMPTS.

Env prefix: AGENT_.

max_research_attempts​

max_research_attempts: int = 3

model_config​

model_config = SettingsConfigDict(env_prefix='AGENT_', env_file='.env', extra='ignore', hide_input_in_errors=True)

recursion_limit​

recursion_limit: int = 50