Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
| 1 | from composio_client import BaseModel |
| 2 | |
| 3 | from composio.core.models.base import Resource |
| 4 | |
| 5 | INTERNAL_SDK_REALTIME_CREDENTIALS_ENDPOINT = "/api/v3/internal/sdk/realtime/credentials" |
| 6 | |
| 7 | |
| 8 | class SDKRealtimeCredentialsResponse(BaseModel): |
| 9 | pusher_key: str |
| 10 | project_id: str |
| 11 | pusher_cluster: str |
| 12 | |
| 13 | |
| 14 | class Internal(Resource): |
| 15 | """ |
| 16 | Internal resource for getting internal SDK realtime credentials. |
| 17 | """ |
| 18 | |
| 19 | def get_sdk_realtime_credentials(self) -> SDKRealtimeCredentialsResponse: |
| 20 | """ |
| 21 | Get the SDK realtime credentials. |
| 22 | |
| 23 | :return: The SDK realtime credentials. |
| 24 | """ |
| 25 | return self._client.get( |
| 26 | path=INTERNAL_SDK_REALTIME_CREDENTIALS_ENDPOINT, |
| 27 | cast_to=SDKRealtimeCredentialsResponse, |
| 28 | ) |