UNPKG

buroventures-harald-code-core

Version:

Harald Code Core - Core functionality for AI-powered coding assistant

65 lines (64 loc) 1.34 kB
/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ /** * Test cases for orphaned tool calls cleanup */ export declare const createTestMessages: () => ({ role: "system"; content: string; tool_calls?: undefined; tool_call_id?: undefined; } | { role: "user"; content: string; tool_calls?: undefined; tool_call_id?: undefined; } | { role: "assistant"; content: string; tool_calls: { id: string; type: "function"; function: { name: string; arguments: string; }; }[]; tool_call_id?: undefined; } | { role: "tool"; tool_call_id: string; content: string; tool_calls?: undefined; })[]; export declare const expectedCleanedMessages: () => ({ role: "system"; content: string; tool_calls?: undefined; tool_call_id?: undefined; } | { role: "user"; content: string; tool_calls?: undefined; tool_call_id?: undefined; } | { role: "assistant"; content: string; tool_calls: { id: string; type: "function"; function: { name: string; arguments: string; }; }[]; tool_call_id?: undefined; } | { role: "tool"; tool_call_id: string; content: string; tool_calls?: undefined; })[];