MCPcopy Index your code
hub / github.com/CopilotKit/CopilotKit / fetch

Function fetch

examples/v2/runtime/cf-workers/src/index.ts:12–26  ·  view source on GitHub ↗
(request: Request, env: Env)

Source from the content-addressed store, hash-verified

10
11export default {
12 async fetch(request: Request, env: Env): Promise<Response> {
13 const runtime = new CopilotRuntime({
14 agents: {
15 default: new BuiltInAgent({ model: "openai/gpt-5-mini" }),
16 },
17 });
18
19 const handler = createCopilotRuntimeHandler({
20 runtime,
21 basePath: "/api/copilotkit",
22 cors: true,
23 });
24
25 return handler(request);
26 },
27};

Callers 15

buildFileContentPartsFunction · 0.85
getFunction · 0.85
postFunction · 0.85
checkStatusMethod · 0.85
transcribeAudioFunction · 0.85
recordAnnotationFunction · 0.85
acquireAppTokenFunction · 0.85
getMessageFileRefsFunction · 0.85
downloadSharedFileFunction · 0.85
listener.test.tsFile · 0.85
fetchBytesFunction · 0.85
buildFileContentPartsFunction · 0.85

Calls 2

handlerFunction · 0.50

Tested by 15

getFunction · 0.68
postFunction · 0.68
bootAndProbeFunction · 0.68
waitForHealthFunction · 0.68
adminTokenFunction · 0.68
mintPendingJobFunction · 0.68
readJobFunction · 0.68
probeWebhookDeployFunction · 0.68
waitForHealthFunction · 0.68
adminTokenFunction · 0.68
waitForHealthFunction · 0.68
adminTokenFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…