pub struct AgentCapabilities {
pub multiple_chats: Option<MultipleChatsCapability>,
}Expand description
Static capabilities an {@link AgentInfo} advertises. Modelled after MCP
capabilities: each field is opt-in and its presence (an empty object {})
signals support, while absence means the feature is unsupported and the
corresponding client commands MUST NOT be used. Sub-fields carry
per-capability options.
Fields§
§multiple_chats: Option<MultipleChatsCapability>The agent can host more than one concurrent chat per session. When absent,
clients MUST NOT call createChat to open chats beyond the default one the
session starts with. An empty object {} advertises multi-chat without
forking; set {@link MultipleChatsCapability.fork} to also allow forking.
Trait Implementations§
Source§impl Clone for AgentCapabilities
impl Clone for AgentCapabilities
Source§fn clone(&self) -> AgentCapabilities
fn clone(&self) -> AgentCapabilities
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 AgentCapabilities
impl Debug for AgentCapabilities
Source§impl Default for AgentCapabilities
impl Default for AgentCapabilities
Source§fn default() -> AgentCapabilities
fn default() -> AgentCapabilities
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentCapabilities
impl<'de> Deserialize<'de> for AgentCapabilities
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 AgentCapabilities
impl PartialEq for AgentCapabilities
Source§fn eq(&self, other: &AgentCapabilities) -> bool
fn eq(&self, other: &AgentCapabilities) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgentCapabilities
impl Serialize for AgentCapabilities
impl StructuralPartialEq for AgentCapabilities
Auto Trait Implementations§
impl Freeze for AgentCapabilities
impl RefUnwindSafe for AgentCapabilities
impl Send for AgentCapabilities
impl Sync for AgentCapabilities
impl Unpin for AgentCapabilities
impl UnsafeUnpin for AgentCapabilities
impl UnwindSafe for AgentCapabilities
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