Merge branch 'wt/review-002-projection-truthfulness'
This commit is contained in:
@@ -209,7 +209,6 @@ impl ToMcpGateway {
|
||||
|
||||
async fn handle_batch(
|
||||
&self,
|
||||
search_filter: Option<String>,
|
||||
arguments: Option<JsonObject>,
|
||||
identity: Option<Identity>,
|
||||
) -> CallToolResult {
|
||||
@@ -248,7 +247,6 @@ impl ToMcpGateway {
|
||||
.await;
|
||||
results.push(envelope_to_value(response));
|
||||
}
|
||||
let _ = search_filter;
|
||||
CallToolResult::structured(serde_json::json!({ "results": results }))
|
||||
}
|
||||
}
|
||||
@@ -464,7 +462,7 @@ impl rmcp::handler::server::ServerHandler for ToMcpGateway {
|
||||
TOOL_SEARCH => this.handle_search(search_filter, identity).await,
|
||||
TOOL_SCHEMA => this.handle_schema(arguments, identity).await,
|
||||
TOOL_CALL => this.handle_call(arguments, identity).await,
|
||||
TOOL_BATCH => this.handle_batch(search_filter, arguments, identity).await,
|
||||
TOOL_BATCH => this.handle_batch(arguments, identity).await,
|
||||
unknown => {
|
||||
let err = CallError::new(
|
||||
"NOT_FOUND",
|
||||
@@ -673,11 +671,7 @@ mod tests {
|
||||
TOOL_SEARCH => gateway.handle_search(search_filter, identity).await,
|
||||
TOOL_SCHEMA => gateway.handle_schema(arguments, identity).await,
|
||||
TOOL_CALL => gateway.handle_call(arguments, identity).await,
|
||||
TOOL_BATCH => {
|
||||
gateway
|
||||
.handle_batch(search_filter, arguments, identity)
|
||||
.await
|
||||
}
|
||||
TOOL_BATCH => gateway.handle_batch(arguments, identity).await,
|
||||
unknown => {
|
||||
let err = CallError::new(
|
||||
"NOT_FOUND",
|
||||
|
||||
Reference in New Issue
Block a user