Skip to content

cayu.providers.deadlines

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.providers import DEFAULT_MAX_CONCURRENT_PROVIDER_STREAMS
DEFAULT_MAX_CONCURRENT_PROVIDER_STREAMS = 100

Release source · Runtime guarantees · Capability guides

from cayu.providers import ProviderDeadlineKind

Bases: StrEnum.

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
TRANSPORT_IDLE class attribute 'transport_idle'
PROTOCOL_IDLE class attribute 'protocol_idle'
SEMANTIC_IDLE class attribute 'semantic_idle'
ABSOLUTE class attribute 'absolute'

Release source · Runtime guarantees · Capability guides

from cayu.providers import ProviderProgressKind

Bases: StrEnum.

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
RESPONSE_IDENTITY class attribute 'response_identity'
REASONING class attribute 'reasoning'
CONTENT class attribute 'content'
TOOL_CALL class attribute 'tool_call'
HOSTED_TOOL class attribute 'hosted_tool'
CITATION class attribute 'citation'
USAGE class attribute 'usage'
TERMINAL class attribute 'terminal'

Release source · Runtime guarantees · Capability guides

from cayu.providers import ProviderStreamDeadlineEvidence

Decorators: @dataclass(frozen=True, slots=True).

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
deadline_kind ProviderDeadlineKind required
configured_timeout_s float required
elapsed_s float required
last_progress_kind ProviderProgressKind | None required
last_progress_elapsed_s float | None required
last_progress_at datetime | None required
whitespace_since_progress bool False
semantic_idle_elapsed_s float | None None
excluded_semantic_pause_s float | None None
ProviderStreamDeadlineEvidence.payload() -> dict[str, object]

Release source · Runtime guarantees · Capability guides

from cayu.providers import ProviderStreamDeadlines

Decorators: @dataclass(frozen=True, slots=True).

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
transport_idle_timeout_s float DEFAULT_TRANSPORT_IDLE_TIMEOUT_SECONDS
protocol_idle_timeout_s float DEFAULT_PROTOCOL_IDLE_TIMEOUT_SECONDS
semantic_progress_timeout_s float DEFAULT_SEMANTIC_PROGRESS_TIMEOUT_SECONDS
absolute_stream_timeout_s float DEFAULT_ABSOLUTE_STREAM_TIMEOUT_SECONDS
max_concurrent_streams int field(default=DEFAULT_MAX_CONCURRENT_PROVIDER_STREAMS, compare=False)

Release source · Runtime guarantees · Capability guides