MCPcopy Create free account
hub / github.com/AI45Lab/Code / create_run

Method create_run

core/src/run.rs:111–117  ·  view source on GitHub ↗
(&self, session_id: &str, prompt: &str)

Source from the content-addressed store, hash-verified

109 }
110
111 pub async fn create_run(&self, session_id: &str, prompt: &str) -> RunSnapshot {
112 // Default ID generation when the caller has no host_env handy.
113 // Production callers reach `create_run_with_id` via
114 // `RunControlState::start_run` so the host's IdGenerator is honored.
115 let id = format!("run-{}", uuid::Uuid::new_v4());
116 self.create_run_with_id(id, session_id, prompt).await
117 }
118
119 /// Create a run with a caller-supplied id. Used by the session
120 /// orchestration layer so the parent session's host-provided

Calls 1

create_run_with_idMethod · 0.80