Skip to content

Commit 8d19c41

Browse files
committed
fix: properly format agentDone tool completion message
The agentDone tool was displaying "[object Object]" in its completion message instead of the actual result string. This was because it was trying to interpolate the entire output object instead of just the result property. This change updates the logReturns function to correctly display the result property from the output object.
1 parent 6e5e191 commit 8d19c41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/agent/src/tools/agent/agentDone.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ export const agentDoneTool: Tool<Parameters, ReturnType> = {
2727
execute: ({ result }) => Promise.resolve({ result }),
2828
logParameters: () => {},
2929
logReturns: (output, { logger }) => {
30-
logger.log(`Completed: ${output}`);
30+
logger.log(`Completed: ${output.result}`);
3131
},
3232
};

0 commit comments

Comments
 (0)