@@ -6,18 +6,17 @@ use std::sync::atomic::{AtomicUsize, Ordering};
66use std:: time:: Duration ;
77
88use async_trait:: async_trait;
9- use github_copilot_sdk:: Client ;
109use github_copilot_sdk:: handler:: {
1110 ApproveAllHandler , AutoModeSwitchHandler , AutoModeSwitchResponse , ElicitationHandler ,
1211 ExitPlanModeHandler , ExitPlanModeResult , PermissionHandler , PermissionResult , UserInputHandler ,
1312 UserInputResponse ,
1413} ;
15- use github_copilot_sdk:: tool;
1614use github_copilot_sdk:: types:: {
1715 CommandContext , CommandDefinition , CommandHandler , DeliveryMode , ElicitationRequest ,
1816 ElicitationResult , ExitPlanModeData , MessageOptions , PermissionRequestData , RequestId ,
1917 SessionConfig , SessionId , Tool , ToolInvocation , ToolResult ,
2018} ;
19+ use github_copilot_sdk:: { Client , tool} ;
2120use serde_json:: Value ;
2221use tokio:: io:: { AsyncWrite , AsyncWriteExt , duplex} ;
2322use tokio:: time:: timeout;
@@ -2055,6 +2054,7 @@ async fn external_tool_requested_dispatches_to_handler_and_responds() {
20552054 . with_description ( "Run tests" )
20562055 . with_parameters ( serde_json:: json!( { "type" : "object" } ) )
20572056 }
2057+
20582058 async fn call (
20592059 & self ,
20602060 invocation : ToolInvocation ,
@@ -2103,6 +2103,7 @@ async fn external_tool_broadcast_for_unknown_tool_is_not_responded_to() {
21032103 . with_description ( "foo" )
21042104 . with_parameters ( serde_json:: json!( { "type" : "object" } ) )
21052105 }
2106+
21062107 async fn call (
21072108 & self ,
21082109 _invocation : ToolInvocation ,
@@ -3877,6 +3878,7 @@ async fn tool_invocation_carries_trace_context_from_event() {
38773878 . with_description ( "calc" )
38783879 . with_parameters ( serde_json:: json!( { "type" : "object" } ) )
38793880 }
3881+
38803882 async fn call (
38813883 & self ,
38823884 invocation : ToolInvocation ,
0 commit comments