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

Add support for GenericMessageContent to AmazonBedrockPromptDriver #1477

Merged
merged 1 commit into from
Dec 31, 2024

Conversation

collindutter
Copy link
Member

@collindutter collindutter commented Dec 20, 2024

Describe your changes

Added

  • Support for GenericMessageContent in AnthropicPromptDriver and AmazonBedrockPromptDriver.

Issue ticket number and link

Relevant #1475

Copy link

codecov bot commented Dec 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@collindutter collindutter force-pushed the feature/bedrock-generic-message branch 3 times, most recently from d932ccd to ed338ce Compare December 23, 2024 17:52
@collindutter collindutter marked this pull request as ready for review December 23, 2024 17:52
@collindutter collindutter force-pushed the feature/bedrock-generic-message branch from ed338ce to 575482b Compare December 23, 2024 18:10
class DocumentArtifact(GenericArtifact):
"""Artifact for storing a document.

Subclassing `GenericArtifact` to avoid printing out `self.value` as `GenericArtifact` does.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels a little weird to me that this is subclassing is needed for this reason only. Doesn't this mean that everyone using the feature will end up creating this subclass?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I don't love it. Let me see if I can provide a more elegant solution to log truncating.

@collindutter collindutter force-pushed the feature/bedrock-generic-message branch 2 times, most recently from 435924d to cef9ff4 Compare December 30, 2024 17:57
@collindutter collindutter force-pushed the feature/bedrock-generic-message branch from cef9ff4 to 695f1ac Compare December 30, 2024 20:48
@collindutter collindutter merged commit 60a5269 into main Dec 31, 2024
16 checks passed
@collindutter collindutter deleted the feature/bedrock-generic-message branch December 31, 2024 00:51
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.

2 participants