RealtimeException (__init__.py)

phone-call-assistant · realtime

Copyright (c) Microsoft Corporation. Licensed under the MIT License.

# Source: https://github.com/gawyli/phone-call-assistant | License: MIT
# Provided via justclaw.it.com; keep this notice with the code.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

import asyncio
import base64
import uuid
from collections.abc import AsyncGenerator, AsyncIterator, Awaitable, Callable
from typing import Literal, Optional, TypeGuard, Union

from azure.core.credentials import AzureKeyCredential
from azure.core.credentials_async import AsyncTokenCredential

from .low_level_client import RTLowLevelClient
from .models import (
    AssistantContentPart,
    AssistantMessageItem,
    AudioFormat,
    ClientMessageBase,
    ErrorMessage,
    FunctionCallItem,
    FunctionCallOutputItem,
    FunctionToolChoice,
    InputAudioBufferAppendMessage,
    Input

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key