MCPcopy Index your code
hub / github.com/TanStack/ai / triggerRun

Function triggerRun

examples/sandbox-cloudflare/src/routes/api.run.ts:164–170  ·  view source on GitHub ↗

Trigger a run on the coordinator; resolve once it has a `runId`.

(
  coordinator: Coordinator,
  input: StartRunInput,
)

Source from the content-addressed store, hash-verified

162
163/** Trigger a run on the coordinator; resolve once it has a `runId`. */
164async function triggerRun(
165 coordinator: Coordinator,
166 input: StartRunInput,
167): Promise<string> {
168 const { runId } = await coordinator.startRun(input)
169 return runId
170}
171
172/**
173 * Open the run's WebSocket tail (the coordinator's `fetch` returns a `101` with a

Callers 1

api.run.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected