Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix/Tool Agent output message #2990

Merged
merged 2 commits into from
Aug 10, 2024
Merged

Bugfix/Tool Agent output message #2990

merged 2 commits into from
Aug 10, 2024

Conversation

HenryHengZJ
Copy link
Contributor

When using Anthropic, the output has the following format:

[
  {
    index: 0,
    type: 'text',
    text: 'Hello! How can I assist you today?'
  }
]

This causes error when we try to regex.

Fix: check if its array, if yes take the text from the first item

@HenryHengZJ HenryHengZJ changed the title Bugafix/Tool Agent output message Bugfix/Tool Agent output message Aug 10, 2024
@HenryHengZJ HenryHengZJ merged commit d4b4168 into main Aug 10, 2024
2 checks passed
patrickreinan pushed a commit to patrickreinan/Flowise that referenced this pull request Sep 3, 2024
* add fix for tool agent output message

* pin langchain core dependency
patrickreinan pushed a commit to patrickreinan/Flowise that referenced this pull request Sep 3, 2024
* add fix for tool agent output message

* pin langchain core dependency
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.

1 participant