MCPcopy Create free account
hub / github.com/GCWing/BitFun / cancel_turn

Method cancel_turn

src/crates/execution/agent-runtime/src/runtime.rs:587–599  ·  view source on GitHub ↗
(
        &self,
        request: AgentTurnCancellationRequest,
    )

Source from the content-addressed store, hash-verified

585 }
586
587 pub async fn cancel_turn(
588 &self,
589 request: AgentTurnCancellationRequest,
590 ) -> Result<AgentTurnCancellationResult, RuntimeError> {
591 let cancellation = self
592 .cancellation
593 .as_ref()
594 .ok_or(RuntimeError::MissingCancellationPort)?;
595 cancellation
596 .cancel_turn(request)
597 .await
598 .map_err(RuntimeError::from)
599 }
600
601 pub async fn publish_event(&self, event: RuntimeEventEnvelope) -> Result<(), RuntimeError> {
602 if self.services.is_none() && self.event_stream.is_none() {

Calls 2

pushMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected