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

Method summarize

src/agent/loop.ts:2496–2509  ·  view source on GitHub ↗
(msgs: Message[])

Source from the content-addressed store, hash-verified

2494 toolAbort.abort('TOOL_TIMEOUT');
2495 const err: any = new Error(`Tool '${tc.function.name}' exceeded ${timeoutSec}s timeout`);
2496 err.code = 'TOOL_TIMEOUT';
2497 reject(err);
2498 }, timeoutMs);
2499 });
2500
2501 const ctx: ToolContext = {
2502 cwd: this.effectiveCwd ?? this.cwd,
2503 sessionId,
2504 transaction,
2505 permissions: this.permissions,
2506 askUser: options.askUser,
2507 emit: (ev) => {
2508 uiEvents.push(ev);
2509 if (options.onToolUI) options.onToolUI(ev);
2510 },
2511 signal: toolAbort.signal,
2512 // The snapshot service (if any) is plumbed in from the agent loop's instance.

Callers 1

compactMessagesFunction · 0.80

Calls 1

completeMethod · 0.45

Tested by

no test coverage detected