fix(llm): resolve compilation issues due to additional stages

This commit is contained in:
perf3ct 2025-07-05 00:11:15 +00:00
parent 42ee351487
commit 4c01d7d8f1
No known key found for this signature in database
GPG Key ID: 569C4EEC436F5232
2 changed files with 9 additions and 1 deletions

View File

@ -98,7 +98,12 @@ export class ErrorRecoveryStage extends BasePipelineStage<ToolExecutionInput, {
log.info(`========== ERROR RECOVERY STAGE PROCESSING ==========`); log.info(`========== ERROR RECOVERY STAGE PROCESSING ==========`);
log.info(`Processing ${response.tool_calls.length} tool calls with advanced error recovery`); log.info(`Processing ${response.tool_calls.length} tool calls with advanced error recovery`);
const recoveredToolCalls = []; const recoveredToolCalls: Array<{
toolCall: any;
message: Message;
attempts: number;
recovered: boolean;
}> = [];
const updatedMessages = [...input.messages]; const updatedMessages = [...input.messages];
// Process each tool call with recovery // Process each tool call with recovery

View File

@ -48,6 +48,9 @@ interface Message {
chatNoteId?: string; chatNoteId?: string;
content?: string; content?: string;
thinking?: string; thinking?: string;
interactionId?: string;
response?: string;
timestamp?: number;
toolExecution?: { toolExecution?: {
action?: string; action?: string;
tool?: string; tool?: string;