pub struct AgentCapabilities {
pub multiple_chats: Option<MultipleChatsCapability>,
pub multiple_working_directories: Option<MultipleWorkingDirectoriesCapability>,
}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
source-based creation; set {@link MultipleChatsCapability.fork} or
{@link MultipleChatsCapability.sideChat} to allow the corresponding mode.
multiple_working_directories: Option<MultipleWorkingDirectoriesCapability>The session’s agent can be granted tool access to more than one working directory. The directories are treated as equal peers except where the agent advertises a protected primary-slot option (some backends pin or replace their first directory as a process root).
When absent, clients MUST NOT mutate a session’s or chat’s working-directory set and MUST NOT set more than one entry in {@link CreateSessionParams.workingDirectories}.
Trait Implementations§
Source§impl Clone for AgentCapabilities
impl Clone for AgentCapabilities
Source§fn clone(&self) -> AgentCapabilities
fn clone(&self) -> AgentCapabilities
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more