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

Audio and Video interface updates #1783

Merged
merged 7 commits into from
Jan 17, 2025
Merged

Conversation

dirkbrnd
Copy link
Contributor

Description

The next round of interface changes for Audio and Video, to make it consistent with Images

_logger("Message contains raw audio data")
else:
_logger(f"Audio file added: {self.audio}")
_logger(f"Audios added: {len(self.audio)}")
Copy link
Contributor

@ysolanky ysolanky Jan 16, 2025

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

Copy link
Contributor Author

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]]:
Copy link
Contributor

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?

Copy link
Contributor Author

@dirkbrnd dirkbrnd Jan 17, 2025

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.

@dirkbrnd dirkbrnd merged commit e8b0625 into refactor/agno Jan 17, 2025
1 check passed
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