Expand description
The Operator protocol — what one operator does per cycle.
Structs§
- Operator
Config - Per-operator configuration overrides. Every field is optional — None means “use the implementation’s default.”
- Operator
Input - Input to an operator. Everything the operator needs to execute.
- Operator
Metadata - Execution metadata. Every field is concrete (not optional) because every operator produces this data. Implementations that can’t track a field (e.g., cost for a local model) use zero/default.
- Operator
Output - Output from an operator. Contains the response, metadata about execution, and any side-effects the operator wants executed.
- SubDispatch
Record - Record of a single sub-dispatch within an operator execution.
- Tool
Metadata - Metadata describing a tool/sub-operator’s external interface.
Enums§
- Exit
Reason - Why an operator invocation ended. The caller needs to know this to decide what happens next (retry? continue? escalate?).
- Trigger
Type - What triggers an operator invocation. Informs context assembly — a scheduled trigger means you need to reconstruct everything from state, while a user message carries conversation context naturally.
Traits§
- Operator
- Protocol ① — The Operator