-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat: support for tools in AnthropicChatGenerator
#118
Conversation
Pull Request Test Coverage Report for Build 11591846436Details
💛 - Coveralls |
haystack_experimental/components/generators/anthropic/chat/chat_generator.py
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found some opportunities for improvement and clarification.
Other than that:
- tests
- Let's export the component to
haystack_experimental/components/__init__.py
- Update the pydoc config in
docs/pydoc/config/generators_api.yml
haystack_experimental/components/generators/anthropic/__init__.py
Outdated
Show resolved
Hide resolved
haystack_experimental/components/generators/anthropic/chat/__init__.py
Outdated
Show resolved
Hide resolved
haystack_experimental/components/generators/anthropic/chat/chat_generator.py
Outdated
Show resolved
Hide resolved
haystack_experimental/components/generators/anthropic/chat/chat_generator.py
Outdated
Show resolved
Hide resolved
haystack_experimental/components/generators/anthropic/chat/chat_generator.py
Outdated
Show resolved
Hide resolved
haystack_experimental/components/generators/anthropic/chat/chat_generator.py
Outdated
Show resolved
Hide resolved
haystack_experimental/components/generators/anthropic/chat/chat_generator.py
Outdated
Show resolved
Hide resolved
haystack_experimental/components/generators/anthropic/chat/chat_generator.py
Outdated
Show resolved
Hide resolved
haystack_experimental/components/generators/anthropic/chat/chat_generator.py
Outdated
Show resolved
Hide resolved
haystack_experimental/components/generators/anthropic/chat/chat_generator.py
Outdated
Show resolved
Hide resolved
Co-authored-by: Stefano Fiorucci <[email protected]>
…t_generator.py Co-authored-by: Stefano Fiorucci <[email protected]>
…t_generator.py Co-authored-by: Stefano Fiorucci <[email protected]>
…t_generator.py Co-authored-by: Stefano Fiorucci <[email protected]>
@anakin87 I've done some basic work without polishing the details to get going in the agreed direction. Any idea what's up with CI? |
I created a PR to fix the issue: #126 |
Looks good @anakin87 - I'll test out your notebook with Anthropic and do another pass to polish this latest stuff. Should be gtg tomorrow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is almost ready to be merged.
I found only a few possible simplifications...
haystack_experimental/components/generators/anthropic/chat/chat_generator.py
Outdated
Show resolved
Hide resolved
haystack_experimental/components/generators/anthropic/chat/chat_generator.py
Outdated
Show resolved
Hide resolved
haystack_experimental/components/generators/anthropic/chat/chat_generator.py
Outdated
Show resolved
Hide resolved
haystack_experimental/components/generators/anthropic/chat/chat_generator.py
Outdated
Show resolved
Hide resolved
…t_generator.py Co-authored-by: Stefano Fiorucci <[email protected]>
Please take into account this comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Messages conversion: I further simplified the logic and added a test.
I think it's good to go now!
Adds AnthropicChatGenerator with tools support
fixes deepset-ai/haystack#8261