pub struct SessionAgentChangedAction {
pub agent: Option<AgentSelection>,
}Expand description
Custom agent selection changed for this session.
Omitting agent (or setting it to undefined) clears the selection and
resets the session to no selected custom agent (provider default behavior).
When a turn is currently active, the server MUST defer the change until
the active turn completes, then apply it for the next turn (same rule as
{@link SessionModelChangedAction | session/modelChanged}).
Fields§
§agent: Option<AgentSelection>New agent selection, or undefined to clear the selection and reset the
session to no selected custom agent.
Trait Implementations§
Source§impl Clone for SessionAgentChangedAction
impl Clone for SessionAgentChangedAction
Source§fn clone(&self) -> SessionAgentChangedAction
fn clone(&self) -> SessionAgentChangedAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionAgentChangedAction
impl Debug for SessionAgentChangedAction
Source§impl Default for SessionAgentChangedAction
impl Default for SessionAgentChangedAction
Source§fn default() -> SessionAgentChangedAction
fn default() -> SessionAgentChangedAction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionAgentChangedAction
impl<'de> Deserialize<'de> for SessionAgentChangedAction
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SessionAgentChangedAction
impl PartialEq for SessionAgentChangedAction
Source§fn eq(&self, other: &SessionAgentChangedAction) -> bool
fn eq(&self, other: &SessionAgentChangedAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SessionAgentChangedAction
Auto Trait Implementations§
impl Freeze for SessionAgentChangedAction
impl RefUnwindSafe for SessionAgentChangedAction
impl Send for SessionAgentChangedAction
impl Sync for SessionAgentChangedAction
impl Unpin for SessionAgentChangedAction
impl UnsafeUnpin for SessionAgentChangedAction
impl UnwindSafe for SessionAgentChangedAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more