rivet icon indicating copy to clipboard operation
rivet copied to clipboard

[Bug]: Unable to use history with functions with the Anthropic plugin

Open probablykabari opened this issue 7 months ago • 0 comments

What happened?

The error is:

Error: Error processing ChatAnthropicNode: messages.
2: Did not find 1 `tool_result` block(s) at the beginning of this message. Messages following `tool_use` blocks must begin with a matching number of `tool_result` blocks.

When passing the output of "All Messages" to another controller to keep the history, this error happens when feeding that history back into the model. I don't see a way to keep history with tool usage because there isn't a way to provide a result of the tool call (to my knowledge) for this llm.

What was the expected functionality?

I would expect the tool call to have a corresponding tool result node. I'm not familiar with how this is handled in other llm's so maybe it is just an Anthropic thing.

Describe your environment

MacOS Node Executor Anthropic Plugin

Relevant log output


Relevant screenshots

Image

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

probablykabari avatar Mar 15 '25 00:03 probablykabari