BuiltinAgentConfig
Configuration for the built-in ReAct strategy.
Properties
tool_calling_mode(Literal["agent", "rag", "none"]): Default"agent". Tool calling mode for Amrita's built-in agent strategyagent_thought_mode(Literal["reasoning", "chat", "reasoning-required", "reasoning-optional"]): Default"chat". Thinking mode:"reasoning"— perform the reasoning process first, then execute"reasoning-required"— require task analysis for each tool call"reasoning-optional"— do not require reasoning but allow it"chat"— execute directly, no reasoning step
loop_reasoning_trigger(int): Default5, minimum1. How many times a repeated tool signature is tolerated before the loop is brokenreact_config(ReactConfig): DefaultReactConfig(). ReAct reasoning enhancement configuration
Description
BuiltinAgentConfig inherits from BaseModel and is exposed as AmritaConfig.builtin. It configures the behaviour of the built-in agent strategy — which tool-calling mode is used and when stall detection gives up.
Tool-call progress and reasoning are always streamed as structured function_call / reasoning_chunk events. Whether to show them is the consumer's decision, so there is no switch here: filter the stream instead (see Streaming and Callbacks).
Example
python
from amrita_core.config import AmritaConfig, BuiltinAgentConfig, ReactConfig
config = AmritaConfig(
builtin=BuiltinAgentConfig(
tool_calling_mode="agent",
agent_thought_mode="reasoning",
agent_tool_call_notice="notify",
loop_reasoning_trigger=3,
react_config=ReactConfig(structured_reasoning=True),
)
)Related
- ReactConfig — the nested reasoning-enhancement config
- AmritaConfig — the parent object
- ReActAgentStrategy — the strategy this configures
