Skip to content

Commit

Permalink
fix: add tool logger
Browse files Browse the repository at this point in the history
  • Loading branch information
sshivaditya committed Jan 10, 2025
1 parent b4cd47e commit b94c524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapters/anthropic/helpers/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export class Completions extends SuperAnthropic {
const toolJson = toolBlock[1];

try {
console.log("Tool JSON:", toolJson);
this.context.logger.info(`Processing tool request:` + toolJson);
const toolRequest: ToolRequest = JSON.parse(toolJson);

// For writeFile, ensure content is stringified if it's an object
Expand Down

0 comments on commit b94c524

Please sign in to comment.