mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-05-19 18:35:18 +02:00
send msgs in webhook tool calls
This commit is contained in:
parent
39282907d4
commit
80a98f1d7b
4 changed files with 10 additions and 2 deletions
|
|
@ -118,7 +118,11 @@ export async function POST(
|
|||
const toolCallResults = await Promise.all(lastMessage.tool_calls.map(async toolCall => {
|
||||
console.log('executing tool call', toolCall);
|
||||
try {
|
||||
return await callClientToolWebhook(toolCall, session.projectId);
|
||||
return await callClientToolWebhook(
|
||||
toolCall,
|
||||
[...messages, ...unsavedMessages],
|
||||
session.projectId,
|
||||
);
|
||||
} catch (error) {
|
||||
console.error(`Error executing tool call ${toolCall.id}:`, error);
|
||||
return { error: "Tool execution failed" };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue