MCPcopy
hub / github.com/CopilotKit/CopilotKit / basic-agent.test.ts

File basic-agent.test.ts

packages/runtime/src/agent/__tests__/basic-agent.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
2import { z } from "zod";
3import { BasicAgent, defineTool } from "../index";
4import type { ToolDefinition } from "../index";

Callers

nothing calls this directly

Calls 15

mockStreamTextResponseFunction · 0.90
textDeltaFunction · 0.90
finishFunction · 0.90
collectEventsFunction · 0.90
textStartFunction · 0.90
toolCallStreamingStartFunction · 0.90
toolCallDeltaFunction · 0.90
toolCallFunction · 0.90
toolResultFunction · 0.90
defineToolFunction · 0.90
reasoningStartFunction · 0.90
reasoningDeltaFunction · 0.90

Tested by

no test coverage detected