#[non_exhaustive]pub struct AgentMethodNames {Show 23 fields
pub initialize: &'static str,
pub auth_login: &'static str,
pub providers_list: &'static str,
pub providers_set: &'static str,
pub providers_disable: &'static str,
pub session_new: &'static str,
pub session_set_config_option: &'static str,
pub session_prompt: &'static str,
pub session_cancel: &'static str,
pub mcp_message: &'static str,
pub session_list: &'static str,
pub session_delete: &'static str,
pub session_fork: &'static str,
pub session_archive: &'static str,
pub session_unarchive: &'static str,
pub session_status: &'static str,
pub session_set_title: &'static str,
pub session_resume: &'static str,
pub session_close: &'static str,
pub tool_call_cancel: &'static str,
pub terminal_cancel: &'static str,
pub auth_logout: &'static str,
pub auth_status: &'static str,
}unstable_protocol_v2 only.Expand description
Names of all methods that agents handle.
Provides a centralized definition of method names used in the protocol.
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.initialize: &'static strMethod for initializing the connection.
auth_login: &'static strMethod for authenticating with the agent.
providers_list: &'static strunstable_llm_providers only.Method for listing configurable providers.
providers_set: &'static strunstable_llm_providers only.Method for setting provider configuration.
providers_disable: &'static strunstable_llm_providers only.Method for disabling a provider.
session_new: &'static strMethod for creating a new session.
session_set_config_option: &'static strMethod for setting a configuration option for a session.
session_prompt: &'static strMethod for sending a prompt to the agent.
session_cancel: &'static strNotification for cancelling operations.
mcp_message: &'static strunstable_mcp_over_acp only.Method for exchanging MCP-over-ACP messages.
session_list: &'static strMethod for listing existing sessions.
session_delete: &'static strMethod for deleting an existing session.
session_fork: &'static strunstable_session_fork only.Method for forking an existing session.
session_archive: &'static strunstable_session_archive only.Method for archiving a session.
session_unarchive: &'static strunstable_session_archive only.Method for unarchiving a session.
session_status: &'static strunstable_session_status only.Method for checking the status of a session.
session_set_title: &'static strunstable_session_set_title only.Method for setting the title of a session.
session_resume: &'static strMethod for resuming an existing session.
session_close: &'static strMethod for closing an active session.
tool_call_cancel: &'static strMethod for cancelling one tool call.
terminal_cancel: &'static strMethod for cancelling one terminal’s process.
auth_logout: &'static strMethod for logging out of an authenticated session.
auth_status: &'static strunstable_auth_status only.Method for querying the agent’s authentication state.
Trait Implementations§
Source§impl Clone for AgentMethodNames
impl Clone for AgentMethodNames
Source§impl Debug for AgentMethodNames
impl Debug for AgentMethodNames
Source§impl Deserialize<'static> for AgentMethodNames
impl Deserialize<'static> for AgentMethodNames
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
impl Eq for AgentMethodNames
Source§impl PartialEq for AgentMethodNames
impl PartialEq for AgentMethodNames
Source§impl Serialize for AgentMethodNames
impl Serialize for AgentMethodNames
impl StructuralPartialEq for AgentMethodNames
Auto Trait Implementations§
impl Freeze for AgentMethodNames
impl RefUnwindSafe for AgentMethodNames
impl Send for AgentMethodNames
impl Sync for AgentMethodNames
impl Unpin for AgentMethodNames
impl UnsafeUnpin for AgentMethodNames
impl UnwindSafe for AgentMethodNames
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,
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.