Conversation
…onality - Introduced tests for MediaResolver with capability-based fallback for OpenAI and Google models. - Implemented tests for handling unsupported media input errors. - Added regression tests to ensure existing workflows for file_id and signed URLs remain functional. - Created tests for TemporaryMediaCache to validate storage, retrieval, and cleanup processes. - Enhanced tests for converting external URLs to inline bytes for various media types. - Established a test suite for the integration of media handling in multimodal content.
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several important improvements to media handling, exception management, and public API structure in the
agentflowframework. The most significant changes include the addition of a new exception for unsupported media input, enhanced internal media reference resolution, improved Google integration for media handling, and a more comprehensive and user-friendly package initialization.Media Handling and Integration:
UnsupportedMediaInputError, to provide clear and actionable errors when a model or provider cannot accept a given media input, including structured logging and helpful suggestions.agentflow://media/...URLs to signed URLs or inline base64 before the provider call, ensuring compatibility with provider capabilities. [1] [2]API and Usability Improvements:
__init__.pyto provide a more comprehensive and user-friendly API surface, including a quick start example, organized imports, and a complete__all__for easier discovery and usage.Type Annotations and Documentation:
Messageclass to useSequence[ContentBlock]instead oflist[ContentBlock]for stricter type contracts, improving type safety and clarity. [1] [2]add_conditional_edgesto reduce duplication and improve maintainability.