MCPcopy
hub / github.com/CopilotKit/CopilotKit / pushToolResult

Function pushToolResult

packages/bot/src/run-loop.ts:153–165  ·  view source on GitHub ↗
(
  agent: AbstractAgent,
  toolCallId: string,
  content: string,
)

Source from the content-addressed store, hash-verified

151}
152
153export function pushToolResult(
154 agent: AbstractAgent,
155 toolCallId: string,
156 content: string,
157): void {
158 const toolMessage: Message = {
159 id: `${toolCallId}-result`,
160 role: "tool",
161 toolCallId,
162 content,
163 };
164 agent.addMessage(toolMessage);
165}

Callers 1

runAgentLoopFunction · 0.85

Calls 1

addMessageMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…