pub struct TurnHandoffAvailableMessage {
pub v: u64,
pub tools: Vec<String>,
pub worker_epoch: u64,
pub relay_marker: Option<bool>,
pub uuid: String,
pub session_id: String,
pub extra: Map<String, Value>,
}Expand description
system/turn_handoff_available — emitted once by a cloud worker that
accepts the turn_handoff control request, right after it registers,
carrying what its registration wrote to external_metadata.turn_handoff.
Lets a session client learn the capability from the event stream instead
of reading worker state. Durable in the stream: a reader keeps the entry
with the newest worker_epoch it has seen and ignores older ones; a
worker life that does not accept turn_handoff emits nothing
(CLI 2.1.273+).
Fields§
§v: u64Contract version of the handoff registration (currently 1).
tools: Vec<String>The tools whose calls this worker would accept.
worker_epoch: u64The worker life announcing it.
relay_marker: Option<bool>Present, and true, only when this worker uses the relay_marker
member of a turn_handoff request; a client sends that member to no
other worker.
uuid: String§session_id: String§extra: Map<String, Value>Trait Implementations§
Source§impl Clone for TurnHandoffAvailableMessage
impl Clone for TurnHandoffAvailableMessage
Source§fn clone(&self) -> TurnHandoffAvailableMessage
fn clone(&self) -> TurnHandoffAvailableMessage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more