pub struct SessionActiveClientRemovedAction {
pub client_id: String,
}Expand description
An active client was removed from this session.
Removes the entry for the client identified by clientId from
{@link SessionState.activeClients}; a no-op when no entry matches.
The host SHOULD dispatch this automatically when a client stops participating
in the session — for example when it unsubscribes from the session channel,
when it disconnects and does not reconnect within a host-defined grace
period, or when a reconnect command’s subscriptions omit a session the
client was still active in. When removing a client, the host SHOULD also
cancel that client’s in-flight tool calls — those whose tool call state
carries a client ToolCallContributor with the matching clientId — by
dispatching chat/toolCallComplete with result.success = false. (There is
no per-tool-call server cancel; a failed completion is the cancellation
mechanism, and the call ends in completed status with a failed result.)
Fields§
§client_id: StringThe clientId of the active client to remove.
Trait Implementations§
Source§impl Clone for SessionActiveClientRemovedAction
impl Clone for SessionActiveClientRemovedAction
Source§fn clone(&self) -> SessionActiveClientRemovedAction
fn clone(&self) -> SessionActiveClientRemovedAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more