#[non_exhaustive]pub struct SessionOptionsResponse {
pub modes: Option<SessionModeState>,
pub config_options: Option<Vec<SessionConfigOption>>,
pub meta: Option<Meta>,
}Expand description
UNSTABLE
This capability is not part of the spec yet, and may be removed or changed at any point.
Response from session/options.
The result is a snapshot. The options a session actually starts with are the ones in the session setup response.
Agents only return type: "boolean" options when the Client advertises
sessionCapabilities.configOptions.boolean.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.modes: Option<SessionModeState>The mode state the session would start with, if the Agent supports modes.
See protocol docs: Session Modes
config_options: Option<Vec<SessionConfigOption>>The config options the session would start with, with the same rules as on
NewSessionResponse.
Optional. Omitted, null, or empty means no config options are advertised.
meta: Option<Meta>The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Implementations§
Source§impl SessionOptionsResponse
impl SessionOptionsResponse
Sourcepub fn new() -> Self
Available on crate feature unstable_session_options only.
pub fn new() -> Self
unstable_session_options only.Builds SessionOptionsResponse with the required response fields set. Optional fields start unset or empty.
Sourcepub fn modes(self, modes: impl IntoOption<SessionModeState>) -> Self
Available on crate feature unstable_session_options only.
pub fn modes(self, modes: impl IntoOption<SessionModeState>) -> Self
unstable_session_options only.The mode state the session would start with, if the Agent supports modes.
See protocol docs: Session Modes
Sourcepub fn config_options(
self,
config_options: impl IntoOption<Vec<SessionConfigOption>>,
) -> Self
Available on crate feature unstable_session_options only.
pub fn config_options( self, config_options: impl IntoOption<Vec<SessionConfigOption>>, ) -> Self
unstable_session_options only.The config options the session would start with.
Sourcepub fn meta(self, meta: impl IntoOption<Meta>) -> Self
Available on crate feature unstable_session_options only.
pub fn meta(self, meta: impl IntoOption<Meta>) -> Self
unstable_session_options only.The _meta property is reserved by ACP to allow clients and agents to attach additional metadata to their interactions. Implementations MUST NOT make assumptions about values at these keys.
See protocol docs: Extensibility
Trait Implementations§
Source§impl Clone for SessionOptionsResponse
impl Clone for SessionOptionsResponse
Source§impl Debug for SessionOptionsResponse
impl Debug for SessionOptionsResponse
Source§impl Default for SessionOptionsResponse
impl Default for SessionOptionsResponse
Source§impl<'de> Deserialize<'de> for SessionOptionsResponse
impl<'de> Deserialize<'de> for SessionOptionsResponse
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
impl Eq for SessionOptionsResponse
Source§impl JsonSchema for SessionOptionsResponse
impl JsonSchema for SessionOptionsResponse
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for SessionOptionsResponse
impl PartialEq for SessionOptionsResponse
Source§impl Serialize for SessionOptionsResponse
impl Serialize for SessionOptionsResponse
impl StructuralPartialEq for SessionOptionsResponse
Auto Trait Implementations§
impl Forget for SessionOptionsResponse
impl Freeze for SessionOptionsResponse
impl Move for SessionOptionsResponse
impl RefUnwindSafe for SessionOptionsResponse
impl Send for SessionOptionsResponse
impl Sync for SessionOptionsResponse
impl Unpin for SessionOptionsResponse
impl UnsafeUnpin for SessionOptionsResponse
impl UnwindSafe for SessionOptionsResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.