cayu.providers.response
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.
ModelResponse
Section titled “ModelResponse”from cayu.providers import ModelResponseOne response, not an agent loop or a runtime authority handle.
Events are the single source for text, thinking, ordered tool-call data, usage and completion metadata. Construction detaches provider observations. The managed inference entrance separately prohibits tool calls and owns redaction, byte limits, accounting, and failure publication.
Bases: BaseModel.
Fields and attributes
Section titled “Fields and attributes”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 |
|---|---|---|
events |
tuple[ModelStreamEvent, ...] |
required |
copy_events (method)
Section titled “copy_events (method)”ModelResponse.copy_events(value: object) -> tuple[ModelStreamEvent, ...]require_one_completion (method)
Section titled “require_one_completion (method)”ModelResponse.require_one_completion() -> ModelResponsetext (property)
Section titled “text (property)”ModelResponse.text() -> strthinking (property)
Section titled “thinking (property)”ModelResponse.thinking() -> strtool_calls (property)
Section titled “tool_calls (property)”ModelResponse.tool_calls() -> tuple[dict[str, Any], ...]Ordered provider-neutral call payloads; never executes the calls.
completion (property)
Section titled “completion (property)”ModelResponse.completion() -> ModelCompletionpayload (property)
Section titled “payload (property)”ModelResponse.payload() -> dict[str, Any]