Skip to content

Using addToolResult creates a new assistant response #7230

@d3lm

Description

@d3lm

Description

When you submit a tool result from the client via addToolResult then that results in the generation of a new assistant message with a different message id than the one that has the tool result on it. This means I end up with the message twice in the chat where the first doesn't have the text parts after the tool result and the second has.

AI SDK Version

  • ai@5.0.0-beta.9
  • @ai-sdk/react@5.0.0-beta.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy