cargo fmt

This commit is contained in:
Tyler Longwell
2026-01-25 10:14:36 -05:00
parent 4fe73d3cbe
commit 73423df79c
3 changed files with 7 additions and 3 deletions
-1
View File
@@ -497,7 +497,6 @@ pub async fn build_session(session_config: SessionBuilderConfig) -> CliSession {
process::exit(1);
});
if session_config.resume {
let session = agent
.config
+4 -1
View File
@@ -116,7 +116,10 @@ impl FinalOutputTool {
}
}
pub async fn execute_tool_call(&mut self, tool_call: CallToolRequestParams) -> DeferredToolCall {
pub async fn execute_tool_call(
&mut self,
tool_call: CallToolRequestParams,
) -> DeferredToolCall {
match tool_call.name.to_string().as_str() {
FINAL_OUTPUT_TOOL_NAME => {
let result = self.validate_json_output(&tool_call.arguments.into()).await;
+3 -1
View File
@@ -67,7 +67,9 @@ pub trait McpClientTrait: Send + Sync {
arguments: Option<JsonObject>,
cancel_token: CancellationToken,
) -> Result<DeferredToolCall, Error> {
let result = self.call_tool(session_id, name, arguments, cancel_token).await;
let result = self
.call_tool(session_id, name, arguments, cancel_token)
.await;
Ok(DeferredToolCall {
result: Box::new(futures::future::ready(result.map_err(|e| match e {
ServiceError::McpError(error_data) => error_data,