Skip to content
Packages Examples Agents Blog Get started

The config section key is ai_agents.

application.yaml
ai_agents:
enabled: true
max_iterations: 10
default_temperature: 0.7
default_max_tokens: 2048
tool_max_retries: 3
enable_tracing: true
enable_metrics: true
NameTypeDefaultEnv VarDescription
enabledboolTrueORI_AI_AGENTS__ENABLEDEnable the AI agents subsystem
max_iterationsint10ORI_AI_AGENTS__MAX_ITERATIONSMaximum reasoning iterations per execution
default_temperaturefloat0.7ORI_AI_AGENTS__DEFAULT_TEMPERATUREDefault temperature for LLM calls
default_max_tokensint2048ORI_AI_AGENTS__DEFAULT_MAX_TOKENSDefault max tokens for LLM responses
tool_max_retriesint3ORI_AI_AGENTS__TOOL_MAX_RETRIESNumber of retries for transient tool execution errors
enable_tracingboolTrueORI_AI_AGENTS__ENABLE_TRACINGEnable OpenTelemetry tracing
enable_metricsboolTrueORI_AI_AGENTS__ENABLE_METRICSEnable Prometheus metrics

Environment variables use prefix ORI_AI_AGENTS__:

Terminal window
export ORI_AI_AGENTS__MAX_ITERATIONS=25
export ORI_AI_AGENTS__DEFAULT_TEMPERATURE=0.5
export ORI_AI_AGENTS__TOOL_MAX_RETRIES=5

Set enabled: false to skip agent service registration entirely. The provider exits early during register().

  • max_iterations: min 1
  • default_temperature: 0.0–2.0
  • tool_max_retries: min 1
  • default_max_tokens: min 1