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 moreSource§impl<'de> Deserialize<'de> for SessionActiveClientRemovedAction
impl<'de> Deserialize<'de> for SessionActiveClientRemovedAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for SessionActiveClientRemovedAction
impl PartialEq for SessionActiveClientRemovedAction
Source§fn eq(&self, other: &SessionActiveClientRemovedAction) -> bool
fn eq(&self, other: &SessionActiveClientRemovedAction) -> bool
self and other values to be equal, and is used by ==.