MCPcopy Create free account
hub / github.com/cortexkit/magic-context / thinkingToolCall

Function thinkingToolCall

packages/pi-plugin/src/pi-todo-inject.test.ts:57–80  ·  view source on GitHub ↗
(
	responseId: string,
	callId: string,
	timestamp: number,
)

Source from the content-addressed store, hash-verified

55}
56
57function thinkingToolCall(
58 responseId: string,
59 callId: string,
60 timestamp: number,
61): Record<string, unknown> {
62 return {
63 role: "assistant",
64 content: [
65 {
66 type: "thinking",
67 thinking: "...",
68 thinkingSignature: `{"id":"rs_${callId}"}`,
69 },
70 {
71 type: "toolCall",
72 id: `${callId}|fc_${callId}`,
73 name: "read",
74 arguments: {},
75 },
76 ],
77 responseId,
78 timestamp,
79 };
80}
81
82function toolResultMsg(
83 callId: string,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected