@@ -1,7 +1,6 @@
|
||||
#![cfg(test)]
|
||||
|
||||
use rmcp::model::{CallToolRequestParam, ErrorCode};
|
||||
use rmcp::object;
|
||||
use rmcp::model::ErrorCode;
|
||||
use serde_json::json;
|
||||
|
||||
use goose::agents::platform_tools::PLATFORM_MANAGE_SCHEDULE_TOOL_NAME;
|
||||
@@ -809,11 +808,11 @@ async fn test_schedule_tool_dispatch() {
|
||||
.await;
|
||||
|
||||
// Test that the tool is properly dispatched through dispatch_tool_call
|
||||
let tool_call = CallToolRequestParam {
|
||||
name: PLATFORM_MANAGE_SCHEDULE_TOOL_NAME.into(),
|
||||
arguments: Some(object!({
|
||||
let tool_call = mcp_core::tool::ToolCall {
|
||||
name: PLATFORM_MANAGE_SCHEDULE_TOOL_NAME.to_string(),
|
||||
arguments: json!({
|
||||
"action": "list"
|
||||
})),
|
||||
}),
|
||||
};
|
||||
|
||||
let (request_id, result) = agent
|
||||
|
||||
Reference in New Issue
Block a user