base_api
Base API for HeyGen avatar services.
Base class defining the common interface for HeyGen avatar service APIs.
- class pipecat.services.heygen.base_api.StandardSessionResponse(*, session_id: str, access_token: str, livekit_agent_token: str, livekit_url: str, ws_url: str, raw_response: Any)[source]
Bases:
BaseModelStandardized session response that all HeyGen avatar services will provide.
This contains the common fields that the client needs to operate, while also storing the raw response for service-specific data access.
- Parameters:
- class pipecat.services.heygen.base_api.BaseAvatarApi[source]
Bases:
ABCBase class for avatar service APIs.
- abstractmethod async new_session(request_data: Any) StandardSessionResponse[source]
Create a new avatar session.
- Parameters:
request_data – Service-specific session request data
- Returns:
Standardized session information
- Return type: