pub struct McpSnapshot { /* private fields */ }Implementations§
Source§impl McpSnapshot
impl McpSnapshot
pub fn new( catalog: Arc<ToolCatalog>, clients: Arc<HashMap<String, Arc<RunningService<RoleClient, McpClient>>>>, ) -> Self
pub fn catalog(&self) -> &Arc<ToolCatalog> ⓘ
pub fn tool_definitions(&self) -> Vec<ToolDefinition>
pub fn model_instructions(&self) -> BTreeMap<String, String>
pub fn server_statuses(&self) -> Vec<McpServerStatusEntry>
pub fn resolve( &self, route: ToolRoute, arguments: Map<String, Value>, ) -> Result<(Arc<RunningService<RoleClient, McpClient>>, CallToolRequestParams)>
pub fn clients_with_prompts( &self, ) -> Vec<(String, Arc<RunningService<RoleClient, McpClient>>)>
pub fn client_for_prompt( &self, namespaced_name: &str, ) -> Result<(String, Arc<RunningService<RoleClient, McpClient>>)>
Trait Implementations§
Source§impl Clone for McpSnapshot
impl Clone for McpSnapshot
Source§fn clone(&self) -> McpSnapshot
fn clone(&self) -> McpSnapshot
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 McpSnapshot
impl Debug for McpSnapshot
Source§impl Default for McpSnapshot
impl Default for McpSnapshot
Source§fn default() -> McpSnapshot
fn default() -> McpSnapshot
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for McpSnapshot
impl !UnwindSafe for McpSnapshot
impl Freeze for McpSnapshot
impl Send for McpSnapshot
impl Sync for McpSnapshot
impl Unpin for McpSnapshot
impl UnsafeUnpin for McpSnapshot
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