Skip to content

cayu.runtime.config_inspection

Public Cayu API. Definitions are grouped by their public source module, and definitions from private implementation modules appear on their package’s page; adding a symbol does not move existing links. The import shown at each entry is a supported public namespace. Read the Python API overview and install the required extra.

from cayu import EffectiveConfigurationField

One resolved non-secret value and its semantic provenance.

Bases: BaseModel, Generic[_ValueT].

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
value _ValueT required
owner str required
source CayuConfigSource required

Release source · Runtime guarantees · Capability guides

from cayu import EffectiveRunConfiguration

Redacted effective run controls and the exact durable profile they produce.

The record intentionally excludes messages, metadata, callbacks, policies, and source inputs. execution_profile is the Runtime’s already-redacted durable identity computed by the same preflight used for session admission.

Bases: BaseModel.

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
max_steps EffectiveConfigurationField[StrictInt] required
limits EffectiveConfigurationField[EffectiveRunLimits] required
retry_policy EffectiveConfigurationField[RetryPolicy] required
thinking EffectiveConfigurationField[ThinkingConfig | None] required
execution_profile ExecutionProfileIdentity required
EffectiveRunConfiguration.detach_execution_profile(value: object) -> ExecutionProfileIdentity

Release source · Runtime guarantees · Capability guides

from cayu import EffectiveRunLimits

Immutable projection of the mutable request-building RunLimits type.

Bases: BaseModel.

Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.

Name Type Default
max_input_tokens StrictInt | None None
max_output_tokens StrictInt | None None
max_total_tokens StrictInt | None None
max_tool_calls StrictInt | None None
max_elapsed_seconds StrictInt | None None
scope Literal['session', 'run'] 'run'

Release source · Runtime guarantees · Capability guides