129 lines
2.7 KiB
Python
129 lines
2.7 KiB
Python
from . import remote_chat_context, utils
|
|
from .chat_context import (
|
|
AgentConfigUpdate,
|
|
AgentHandoff,
|
|
AudioContent,
|
|
ChatContent,
|
|
ChatContext,
|
|
ChatItem,
|
|
ChatMessage,
|
|
ChatRole,
|
|
FunctionCall,
|
|
FunctionCallOutput,
|
|
ImageContent,
|
|
MetricsReport,
|
|
)
|
|
from .fallback_adapter import AvailabilityChangedEvent, FallbackAdapter
|
|
from .llm import (
|
|
LLM,
|
|
ChatChunk,
|
|
ChoiceDelta,
|
|
CollectedResponse,
|
|
CompletionUsage,
|
|
FunctionToolCall,
|
|
LLMError,
|
|
LLMStream,
|
|
)
|
|
from .realtime import (
|
|
GenerationCreatedEvent,
|
|
InputSpeechStartedEvent,
|
|
InputSpeechStoppedEvent,
|
|
InputTranscriptionCompleted,
|
|
MessageGeneration,
|
|
RealtimeCapabilities,
|
|
RealtimeError,
|
|
RealtimeModel,
|
|
RealtimeModelError,
|
|
RealtimeSession,
|
|
RealtimeSessionReconnectedEvent,
|
|
RemoteItemAddedEvent,
|
|
)
|
|
from .realtime_fallback_adapter import (
|
|
RealtimeAvailabilityChangedEvent,
|
|
RealtimeModelFallbackAdapter,
|
|
)
|
|
from .tool_context import (
|
|
FunctionTool,
|
|
ProviderTool,
|
|
RawFunctionTool,
|
|
StopResponse,
|
|
Tool,
|
|
ToolChoice,
|
|
ToolContext,
|
|
ToolError,
|
|
ToolFlag,
|
|
Toolset,
|
|
find_function_tools,
|
|
function_tool,
|
|
is_function_tool,
|
|
is_raw_function_tool,
|
|
)
|
|
from .utils import FunctionCallResult, execute_function_call
|
|
|
|
__all__ = [
|
|
"LLM",
|
|
"LLMStream",
|
|
"CollectedResponse",
|
|
"execute_function_call",
|
|
"FunctionCallResult",
|
|
"ChatContext",
|
|
"ChatRole",
|
|
"ChatMessage",
|
|
"ChatContent",
|
|
"FunctionCall",
|
|
"FunctionCallOutput",
|
|
"AudioContent",
|
|
"ImageContent",
|
|
"AgentConfigUpdate",
|
|
"AgentHandoff",
|
|
"MetricsReport",
|
|
"ChatItem",
|
|
"ChoiceDelta",
|
|
"ChatChunk",
|
|
"CompletionUsage",
|
|
"FallbackAdapter",
|
|
"AvailabilityChangedEvent",
|
|
"RealtimeModelFallbackAdapter",
|
|
"RealtimeAvailabilityChangedEvent",
|
|
"ToolChoice",
|
|
"Tool",
|
|
"Toolset",
|
|
"is_function_tool",
|
|
"function_tool",
|
|
"find_function_tools",
|
|
"FunctionTool",
|
|
"is_raw_function_tool",
|
|
"RawFunctionTool",
|
|
"ProviderTool",
|
|
"ToolContext",
|
|
"ToolError",
|
|
"ToolFlag",
|
|
"StopResponse",
|
|
"utils",
|
|
"remote_chat_context",
|
|
"FunctionToolCall",
|
|
"RealtimeModel",
|
|
"RealtimeError",
|
|
"RealtimeModelError",
|
|
"RealtimeCapabilities",
|
|
"RealtimeSession",
|
|
"InputTranscriptionCompleted",
|
|
"InputSpeechStartedEvent",
|
|
"InputSpeechStoppedEvent",
|
|
"GenerationCreatedEvent",
|
|
"MessageGeneration",
|
|
"RealtimeSessionReconnectedEvent",
|
|
"RealtimeSessionRestoredEvent",
|
|
"LLMError",
|
|
"RemoteItemAddedEvent",
|
|
]
|
|
|
|
# Cleanup docs of unexported modules
|
|
_module = dir()
|
|
NOT_IN_ALL = [m for m in _module if m not in __all__]
|
|
|
|
__pdoc__ = {}
|
|
|
|
for n in NOT_IN_ALL:
|
|
__pdoc__[n] = False
|