Open
Conversation
…s in pyproject.toml
…tarSession - Changed environment variable name in README from LEMONSLICE_IMAGE_URL to AGENTHUMAN_AVATAR for clarity. - Enhanced logging messages in api.py and avatar.py to include the [agenthuman] prefix for better traceability.
- Added retry mechanism in the session creation process to handle transient API connection errors. - Improved error logging to provide better insights during failures.
- Removed the check for the AGENTHUMAN_AVATAR environment variable in the AgentHumanAPI class. - This change simplifies the avatar handling logic by allowing a default avatar to be used if none is provided.
- Improved session management in AgentHumanAPI by adding ownership tracking for the aiohttp.ClientSession. - Enhanced error handling during session creation to provide clearer feedback on unexpected API response structures. - Updated AvatarSession to use session_id instead of conversation_id for better clarity in session management.
- Updated exception handling in the AgentHumanAPI class to catch both APIStatusError and AgentHumanException, ensuring more robust error management during API interactions.
- Enhanced exception handling in the AgentHumanAPI class to separately manage APIStatusError and AgentHumanException. - Added logging for non-retryable APIStatusError to provide better insights during failures. - Adjusted retry logic to ensure proper handling of exceptions and maintain clarity in error reporting.
- Simplified the construction of the room payload in the AgentHumanAPI class by consolidating the room dictionary into a single line for improved readability.
…nthuman/api.py Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
- Updated the retry loop in the AgentHumanAPI class to include an additional iteration, ensuring that the maximum retry count is correctly applied during session creation attempts. - This change aims to improve the reliability of session establishment by allowing one more retry in case of transient errors.
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 PR adds an integration plugin for Agent Human, enabling real-time AI avatars in LiveKit agent sessions.
Overview
Agent Human provides live, lipsynced avatars that convert agent voice output into expressive video. This plugin connects LiveKit agents to Agent Human and publishes the resulting avatar stream back into the room.
Integration Docs: https://docs.agenthuman.com/documentation/livekit/overview
Live demo on our website: https://agenthuman.com (demo running on LiveKit actually)