mirror of https://github.com/buster-so/buster.git
done tool fix
This commit is contained in:
parent
6d1a0b6c86
commit
35e0fc27d7
|
@ -0,0 +1 @@
|
|||
|
|
@ -39,7 +39,10 @@ export function createDoneToolDelta(context: DoneToolContext, doneToolState: Don
|
|||
doneToolState,
|
||||
options.toolCallId
|
||||
);
|
||||
const doneToolMessage = createDoneToolRawLlmMessageEntry(doneToolState, options.toolCallId);
|
||||
const doneToolMessage = createDoneToolRawLlmMessageEntry(
|
||||
doneToolState,
|
||||
options.toolCallId || ''
|
||||
);
|
||||
|
||||
const entries: UpdateMessageEntriesParams = {
|
||||
messageId: context.messageId,
|
||||
|
|
|
@ -38,12 +38,8 @@ export function createDoneToolRawLlmMessageEntry(
|
|||
type: 'tool-call',
|
||||
toolCallId: id,
|
||||
toolName: 'doneTool',
|
||||
input: {},
|
||||
input: { finalResponse: doneToolState.finalResponse || '' },
|
||||
},
|
||||
// Optionally include any accumulated text content
|
||||
...(doneToolState.finalResponse
|
||||
? [{ type: 'text' as const, text: doneToolState.finalResponse }]
|
||||
: []),
|
||||
],
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue