[Bug]: Unable to use history with functions with the Anthropic plugin
- Dominant language
- TypeScript
- Stars
- 4.7k
- Forks
- 388
- PR merge metrics
- No merged PRs in 30d
Description
### 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
```shell
```
### Relevant screenshots
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct
Contributor guide
Assessment
This issue has not been assessed yet.