Skip to content
beam-agents
GitHub

dataclass

AgentConfig

beam_agents.core.transform.AgentConfig

AgentConfig(provider_factory: 'Callable[[], LLMClient]', *, decode: 'Decode | None' = None, activation_timeout_s: 'float' = 30.0, ttl_ms: 'int' = 3600000, cancel_grace_s: 'float' = 5.0, hitl_policy: 'HitlPolicy' = <factory>, tool_registry: 'ToolRegistry' = <factory>, intents_to: 'str | None' = None, traces_to: 'str | None' = None, errors_to: 'str | None' = None, snapshots_to: 'str | None' = None, sink_resolver: 'SinkResolver' = <factory>, longterm_memory: 'str | None' = None, compactor: 'Compactor | None' = <factory>, summarizer: 'Summarizer | None' = None, on_expire: 'ExpireHook | None' = None, batch_policy: 'BatchPolicy' = <BatchPolicy.NONE: 'none'>, max_batch_size: 'int | None' = None, max_wait_ms: 'int | None' = None, max_buffered_events: 'int | None' = None, max_tokens_per_activation: 'int | None' = None) -> None

Docstring

Immutable, self-validating RunAgent configuration.

Bundles the provider factory, the runtime knobs, and the optional sink URIs. Validation runs in __post_init__, so a misconfigured value raises ValueError at the construction site — before any pipeline exists.

src/beam_agents/core/transform.py:476

Members

22 declared on AgentConfig

Introspected from the class itself. A member with no docstring is shown as having none rather than described from its name.

  • activation_timeout_s: float

    No docstring.

  • batch_policy: BatchPolicy

    No docstring.

  • cancel_grace_s: float

    No docstring.

  • compactor: Compactor | None

    No docstring.

  • decode

    field

    decode: Decode | None

    No docstring.

  • errors_to: str | None

    No docstring.

  • hitl_policy: HitlPolicy

    No docstring.

  • intents_to: str | None

    No docstring.

  • longterm_memory: str | None

    No docstring.

  • max_batch_size: int | None

    No docstring.

  • max_buffered_events: int | None

    No docstring.

  • max_tokens_per_activation: int | None

    No docstring.

  • max_wait_ms: int | None

    No docstring.

  • on_expire: ExpireHook | None

    No docstring.

  • provider_factory: Callable[[], LLMClient]

    No docstring.

  • sink_resolver: SinkResolver

    No docstring.

  • snapshots_to: str | None

    No docstring.

  • summarizer: Summarizer | None

    No docstring.

  • tool_registry: ToolRegistry

    No docstring.

  • traces_to: str | None

    No docstring.

  • ttl_ms

    field

    ttl_ms: int

    No docstring.

  • batch_settings(self) -> 'BatchSettings | None'

    The resolved batching bounds, or None under BatchPolicy.NONE.

    Recomputed rather than cached: the dataclass is frozen with slots, and the resolution is three comparisons over integers on a path that runs at pipeline construction, not per element.