fix: Tool calls for trip planner

This commit is contained in:
bracesproul
2025-03-06 11:42:39 -08:00
parent 098d954d06
commit 60ba2a11c1
4 changed files with 57 additions and 67 deletions

View File

@@ -158,8 +158,7 @@ export async function callTools(
buyStockToolCall.args.ticker,
);
ui.write("buy-stock", {
toolCallId:
message.tool_calls?.find((tc) => tc.name === "buy-stock")?.id ?? "",
toolCallId: buyStockToolCall.id ?? "",
snapshot,
quantity: buyStockToolCall.args.quantity,
});