MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / readCall

Function readCall

test/read-cache.test.ts:5–11  ·  view source on GitHub ↗
(id: string, path: string, extra: Record<string, unknown> = {})

Source from the content-addressed store, hash-verified

3import type { Message } from '../src/session/store.js';
4
5function readCall(id: string, path: string, extra: Record<string, unknown> = {}): Message {
6 return {
7 role: 'assistant',
8 content: null,
9 tool_calls: [{ id, type: 'function', function: { name: 'read_file', arguments: JSON.stringify({ path, ...extra }) } }],
10 };
11}
12function readResult(id: string, content: string): Message {
13 return { role: 'tool', tool_call_id: id, name: 'read_file', content };
14}

Callers 1

read-cache.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected