ui: show tool number (#2071)

This commit is contained in:
Lily Delalande
2025-04-07 19:49:58 -04:00
committed by GitHub
parent 4ea14d0766
commit 490944c3f8
12 changed files with 277 additions and 67 deletions
+4 -1
View File
@@ -12,7 +12,7 @@ use super::extension::{ExtensionConfig, ExtensionResult};
use crate::providers::base::Provider;
use crate::session;
use crate::{message::Message, permission::PermissionConfirmation};
use mcp_core::{prompt::Prompt, protocol::GetPromptResult, Content, ToolResult};
use mcp_core::{prompt::Prompt, protocol::GetPromptResult, Content, Tool, ToolResult};
/// Session configuration for an agent
#[derive(Debug, Clone, Serialize, Deserialize)]
@@ -43,6 +43,9 @@ pub trait Agent: Send + Sync {
// TODO this needs to also include status so we can tell if extensions are dropped
async fn list_extensions(&self) -> Vec<String>;
/// List the tools this agent has access to
async fn list_tools(&self) -> Vec<Tool>;
/// Pass through a JSON-RPC request to a specific extension
async fn passthrough(&self, extension: &str, request: Value) -> ExtensionResult<Value>;