Skip to content

[Tool Calls] Emit tool_call_started for Anthropic#23695

Merged
philipperolet merged 1 commit intomainfrom
pr/403-anthropic-tool-call-started
Apr 3, 2026
Merged

[Tool Calls] Emit tool_call_started for Anthropic#23695
philipperolet merged 1 commit intomainfrom
pr/403-anthropic-tool-call-started

Conversation

@philipperolet
Copy link
Copy Markdown
Contributor

@philipperolet philipperolet commented Apr 3, 2026

Description

Follows #23634

  • Emit tool_call_started when Anthropic starts a tool_use content block.
  • Update the streamed-event fixtures so the tool name and id are exposed before the input JSON delta arrives.

Risks

Blast radius: Anthropic streaming normalization in front
Risk: low

Deploy Plan

  • pmrr
  • deploy front

Test

  • NODE_ENV=test TEST_FRONT_DATABASE_URI=postgres://test:test@localhost:5433/dust_front_test_stream_tool_calls TEST_REDIS_URI=redis://localhost:6479 npm test lib/api/llm/clients/anthropic/utils/test/anthropic_to_events.test.ts
  • Local logging of tool call

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated (UTC)
playground Ignored Ignored Preview Apr 3, 2026 9:04am
storybook Ignored Ignored Apr 3, 2026 9:04am

Request Review

Copy link
Copy Markdown
Contributor

@dust-agent dust-agent bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coding Rules LGTM \o/

@philipperolet philipperolet requested a review from spolu April 3, 2026 09:33
@philipperolet philipperolet merged commit afa0f30 into main Apr 3, 2026
33 checks passed
@philipperolet philipperolet deleted the pr/403-anthropic-tool-call-started branch April 3, 2026 09:34
@spolu
Copy link
Copy Markdown
Contributor

spolu commented Apr 3, 2026

LGTM cc @pmilliotte

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants