mirror of
https://github.com/zadam/trilium.git
synced 2025-12-05 15:04:24 +01:00
fix(llm): resolve compilation issues due to additional stages
This commit is contained in:
parent
42ee351487
commit
4c01d7d8f1
@ -98,7 +98,12 @@ export class ErrorRecoveryStage extends BasePipelineStage<ToolExecutionInput, {
|
||||
log.info(`========== ERROR RECOVERY STAGE PROCESSING ==========`);
|
||||
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];
|
||||
|
||||
// Process each tool call with recovery
|
||||
|
||||
@ -48,6 +48,9 @@ interface Message {
|
||||
chatNoteId?: string;
|
||||
content?: string;
|
||||
thinking?: string;
|
||||
interactionId?: string;
|
||||
response?: string;
|
||||
timestamp?: number;
|
||||
toolExecution?: {
|
||||
action?: string;
|
||||
tool?: string;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user