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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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 from 575482b to 435924d Compare December 23, 2024 18:39
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