Spaces:
Runtime error
Runtime error
Download utils/__init__.py from Smartwaylabs/pipecat-livekit: direct link, hf CLI and curl.
- Browser
- Download file 991 Bytes
-
https://huggingface.co/spaces/Smartwaylabs/pipecat-livekit/resolve/main/utils/__init__.py
- Command line
-
hf download hf://spaces/Smartwaylabs/pipecat-livekit/utils/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/Smartwaylabs/pipecat-livekit/resolve/main/utils/__init__.py
991 Bytes
| """ | |
| Utility modules for Pipecat server. | |
| Provides: | |
| - S3 client for cloud storage operations | |
| - Logging utilities | |
| - Session helpers | |
| - State persistence | |
| - Twilio call management | |
| """ | |
| from utils.s3_client import S3Client, get_s3_key_with_prefix | |
| from utils.logging import ( | |
| log_info, | |
| log_debug, | |
| log_warning, | |
| log_error, | |
| save_log_to_s3, | |
| ) | |
| from utils.session import get_max_session_duration, DEFAULT_MAX_SESSION_DURATION | |
| from utils.state import save_flow_state | |
| from utils.twilio import ( | |
| terminate_call, | |
| set_call_context, | |
| get_call_context, | |
| clear_call_context, | |
| ) | |
| __all__ = [ | |
| # S3 | |
| "S3Client", | |
| "get_s3_key_with_prefix", | |
| # Logging | |
| "log_info", | |
| "log_debug", | |
| "log_warning", | |
| "log_error", | |
| "save_log_to_s3", | |
| # Session | |
| "get_max_session_duration", | |
| "DEFAULT_MAX_SESSION_DURATION", | |
| # State | |
| "save_flow_state", | |
| # Twilio | |
| "terminate_call", | |
| "set_call_context", | |
| "get_call_context", | |
| "clear_call_context", | |
| ] | |