refactor(core): remove provider module, migrate to LLMProvider, add client mode handling, improve serialization error handling, update workspace edition, and clean up conditionals and imports
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use super::{McpToolCall, McpToolDescriptor, McpToolResponse};
|
||||
use crate::Result;
|
||||
use crate::{Result, mode::Mode};
|
||||
use async_trait::async_trait;
|
||||
|
||||
/// Trait for a client that can interact with an MCP server
|
||||
@@ -10,6 +10,11 @@ pub trait McpClient: Send + Sync {
|
||||
|
||||
/// Call a tool on the server
|
||||
async fn call_tool(&self, call: McpToolCall) -> Result<McpToolResponse>;
|
||||
|
||||
/// Update the server with the active operating mode.
|
||||
async fn set_mode(&self, _mode: Mode) -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
// Re-export the concrete implementation that supports stdio and HTTP transports.
|
||||
|
||||
Reference in New Issue
Block a user