Skip to main content
from definable.agent import AgentConfig

Parameters

ParameterTypeDefaultDescription
agent_idstrauto UUIDUnique agent identifier.
agent_namestr""Display name for logs and traces.
max_iterationsint10Max model-call loops before stopping.
max_tokensintNoneToken limit per run.
stream_timeout_secondsfloat300.0Streaming timeout.
retry_transient_errorsboolTrueAuto-retry on transient errors.
max_retriesint3Max retry attempts.
validate_tool_argsboolTrueValidate tool arguments against schema.
session_stateDictNoneDefault session state for tools.
dependenciesDictNoneInjected tool dependencies.
tracingTracingNoneTracing configuration.
readersReadersConfigNoneFile reader configuration.

Methods

MethodReturnsDescription
with_updates(**kwargs)AgentConfigCreate modified copy (frozen dataclass).

ReadersConfig

ParameterTypeDefaultDescription
enabledboolTrueEnable file reading.
registryBaseReaderNoneCustom reader (auto-create if None).
max_total_content_lengthintNoneMax injected content length.
context_formatstr"xml""xml" or "markdown".