-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Audio and Video interface updates #1783
Conversation
libs/agno/agno/models/message.py
Outdated
_logger("Message contains raw audio data") | ||
else: | ||
_logger(f"Audio file added: {self.audio}") | ||
_logger(f"Audios added: {len(self.audio)}") |
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.
Can we please revert to Audio Files
? Audios
does not sound right
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.
Yep
@@ -183,6 +185,50 @@ def format_image_for_message(self, image: ImageInput) -> Optional[Dict[str, Any] | |||
logger.warning(f"Unknown image type: {type(image)}") | |||
return None | |||
|
|||
def format_audio_for_message(self, audio: AudioInput) -> Optional[Dict[str, Any]]: |
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.
Why did we remove the functionality for providing a local path for an audio file directly?
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.
Good call. I added it so it has the same interface as video.
Description
The next round of interface changes for Audio and Video, to make it consistent with Images