MCPcopy Index your code
hub / github.com/AI45Lab/Code / execute

Method execute

core/src/session_lane_queue.rs:185–195  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

183#[async_trait]
184impl LaneCommand for SessionCommandAdapter {
185 async fn execute(&self) -> LaneResult<Value> {
186 match self.handler_mode {
187 TaskHandlerMode::Internal => self
188 .inner
189 .execute()
190 .await
191 .map_err(|e| LaneError::CommandError(e.to_string())),
192 TaskHandlerMode::External => self.register_and_wait().await,
193 TaskHandlerMode::Hybrid => self.execute_with_notification().await,
194 }
195 }
196 fn command_type(&self) -> &str {
197 self.inner.command_type()
198 }

Callers 1

Calls 3

register_and_waitMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected