We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 363fe4d commit 59b7727Copy full SHA for 59b7727
src/agent/mod.rs
@@ -202,7 +202,7 @@ impl Agent {
202
agent_builder
203
}
204
205
- async fn add_mcp_tools<'a, M>(
+ async fn add_mcp_tools<M>(
206
mut agent_builder: AgentBuilder<M>,
207
mcp: Option<&McpConfig>,
208
) -> Result<(AgentBuilder<M>, String)>
@@ -265,7 +265,7 @@ impl Agent {
265
266
if let Some(system_prompt_template) = &server_config.system_prompt {
267
if let Some(context_tool) = &server_config.context_tool {
268
- let result = mcp_client.call_tool(&context_tool, None).await?;
+ let result = mcp_client.call_tool(context_tool, None).await?;
269
if result.is_error.is_none_or(|is_error| !is_error) {
270
let txt = result
271
.content
0 commit comments