pub struct NewSessionResponse {
pub session_id: SessionId,
pub modes: Option<SessionModeState>,
pub config_options: Option<Vec<SessionConfigOption>>,
}Expand description
session/new response.
Fields§
§session_id: SessionIdThe id of the session the agent created. Every subsequent request for this conversation uses this id.
modes: Option<SessionModeState>Initial mode state the agent advertises. Absent when the agent does not support session modes.
config_options: Option<Vec<SessionConfigOption>>Initial session configuration options the agent advertises. Absent when the agent has no configuration to surface.
Trait Implementations§
Source§impl Clone for NewSessionResponse
impl Clone for NewSessionResponse
Source§impl Debug for NewSessionResponse
impl Debug for NewSessionResponse
Source§impl<'de> Deserialize<'de> for NewSessionResponse
impl<'de> Deserialize<'de> for NewSessionResponse
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
impl Eq for NewSessionResponse
Source§impl PartialEq for NewSessionResponse
impl PartialEq for NewSessionResponse
Source§impl Serialize for NewSessionResponse
impl Serialize for NewSessionResponse
impl StructuralPartialEq for NewSessionResponse
Auto Trait Implementations§
impl Freeze for NewSessionResponse
impl RefUnwindSafe for NewSessionResponse
impl Send for NewSessionResponse
impl Sync for NewSessionResponse
impl Unpin for NewSessionResponse
impl UnsafeUnpin for NewSessionResponse
impl UnwindSafe for NewSessionResponse
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