MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / handle_approve_draft_chunk

Function handle_approve_draft_chunk

crates/openshell-server/src/grpc/policy.rs:2520–2529  ·  view source on GitHub ↗
(
    state: &Arc<ServerState>,
    request: Request<ApproveDraftChunkRequest>,
)

Source from the content-addressed store, hash-verified

2518}
2519
2520pub(super) async fn handle_approve_draft_chunk(
2521 state: &Arc<ServerState>,
2522 request: Request<ApproveDraftChunkRequest>,
2523) -> Result<Response<ApproveDraftChunkResponse>, Status> {
2524 let result = handle_approve_draft_chunk_inner(state, request).await;
2525 if result.is_err() {
2526 emit_policy_decision_failure(PolicyDecisionOperation::Approve, 1);
2527 }
2528 result
2529}
2530
2531async fn handle_approve_draft_chunk_inner(
2532 state: &Arc<ServerState>,

Tested by

no test coverage detected