Skip to content

Commit 6e30398

Browse files
chore(agentkit): bump to v1.5.0 and expose v2.7 type aliases
Bumps the package version to v1.5.0 and re-exports the generated v2.7 core types as public AgentKit aliases so callers can import config, response, vendor, and turn-detection types directly from and . Adds the xAI Grok and Vertex AI MLLM wrappers to the vendor namespace alongside the existing generic and live avatar wrappers.
1 parent 47e82cb commit 6e30398

4 files changed

Lines changed: 69 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "agora-agent-server-sdk"
33

44
[tool.poetry]
55
name = "agora-agent-server-sdk"
6-
version = "v1.4.1"
6+
version = "v1.5.0"
77
description = ""
88
readme = "README.md"
99
authors = []

src/agora_agent/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
Agent,
1515
AgentSession,
1616
AgentSessionOptions,
17+
GenericAvatar,
18+
XaiGrok,
19+
XaiRealtime,
1720
generate_rtc_token,
1821
GenerateTokenOptions,
1922
)
@@ -26,8 +29,11 @@
2629
"Area": ".core.domain",
2730
"AsyncAgentSession": ".agentkit.agent_session",
2831
"AsyncAgora": ".pool_client",
32+
"GenericAvatar": ".agentkit",
33+
"XaiGrok": ".agentkit",
2934
"GenerateTokenOptions": ".agentkit",
3035
"Pool": ".core.domain",
36+
"XaiRealtime": ".agentkit",
3137
"__version__": ".version",
3238
"agentkit": ".agentkit",
3339
"agents": ".agents",
@@ -68,8 +74,11 @@ def __dir__():
6874
"Area",
6975
"AsyncAgentSession",
7076
"AsyncAgora",
77+
"GenericAvatar",
78+
"XaiGrok",
7179
"GenerateTokenOptions",
7280
"Pool",
81+
"XaiRealtime",
7382
"__version__",
7483
"agentkit",
7584
"agents",

src/agora_agent/agentkit/__init__.py

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,30 @@
11
from .agent import (
22
Agent,
3+
AgentConfig,
4+
AgentConfigUpdate,
5+
ConversationHistory,
6+
ConversationRole,
7+
ConversationSessionTurn,
8+
ConversationTurn,
9+
ConversationTurns,
310
StartAgentsRequestProperties,
11+
AvatarConfig,
12+
AvatarVendor,
413
GeofenceConfig,
14+
LlmConfig,
15+
LlmStyle,
16+
MllmConfig,
17+
MllmVendor,
518
RtcConfig,
19+
SttConfig,
20+
SttVendor,
21+
TtsConfig,
622
FillerWordsConfig,
723
FillerWordsTrigger,
824
FillerWordsTriggerFixedTimeConfig,
925
FillerWordsContent,
1026
FillerWordsContentStaticConfig,
27+
FillerWordsContentSelectionRule,
1128
TurnDetectionConfig,
1229
TurnDetectionNestedConfig,
1330
StartOfSpeechConfig,
@@ -37,9 +54,14 @@
3754
InterruptionMode,
3855
MllmTurnDetectionConfig,
3956
MllmTurnDetectionMode,
57+
Labels,
4058
LlmGreetingConfigs,
4159
LlmGreetingConfigsMode,
4260
McpServersItem,
61+
SessionInfo,
62+
SessionListResponse,
63+
SessionSummary,
64+
SpeakPriority,
4365
)
4466
from .agent_session import AgentSession, AgentSessionOptions, AsyncAgentSession
4567
from ..agent_management.types.agent_think_agent_management_response import (
@@ -57,8 +79,10 @@
5779
from .avatar_types import (
5880
is_akool_avatar,
5981
is_anam_avatar,
82+
is_generic_avatar,
6083
is_heygen_avatar,
6184
is_live_avatar_avatar,
85+
is_rtc_avatar,
6286
validate_avatar_config,
6387
validate_tts_sample_rate,
6488
)
@@ -112,6 +136,7 @@
112136
FishAudioTTS,
113137
Gemini,
114138
GeminiLive,
139+
GenericAvatar,
115140
GoogleSTT,
116141
GoogleTTS,
117142
HeyGenAvatar,
@@ -132,21 +157,35 @@
132157
SarvamTTS,
133158
SpeechmaticsSTT,
134159
VertexAI,
160+
XaiGrok,
161+
XaiRealtime,
135162
LiveAvatarAvatar,
136163
)
137164

138165
__all__ = [
139166
"Agent",
167+
"AgentConfig",
168+
"AgentConfigUpdate",
140169
# Return type of Agent.to_properties()
141170
"StartAgentsRequestProperties",
142171
# Top-level config types
172+
"LlmConfig",
173+
"LlmStyle",
174+
"SttConfig",
175+
"SttVendor",
176+
"TtsConfig",
177+
"MllmConfig",
178+
"MllmVendor",
179+
"AvatarConfig",
180+
"AvatarVendor",
143181
"GeofenceConfig",
144182
"RtcConfig",
145183
"FillerWordsConfig",
146184
"FillerWordsTrigger",
147185
"FillerWordsTriggerFixedTimeConfig",
148186
"FillerWordsContent",
149187
"FillerWordsContentStaticConfig",
188+
"FillerWordsContentSelectionRule",
150189
# Turn detection types
151190
"TurnDetectionConfig",
152191
"TurnDetectionNestedConfig",
@@ -181,6 +220,7 @@
181220
"InterruptionMode",
182221
"MllmTurnDetectionConfig",
183222
"MllmTurnDetectionMode",
223+
"Labels",
184224
# Type-safe constants
185225
"DataChannel",
186226
"AudioScenario",
@@ -197,6 +237,15 @@
197237
"AgentSession",
198238
"AsyncAgentSession",
199239
"AgentSessionOptions",
240+
"SessionInfo",
241+
"SessionListResponse",
242+
"SessionSummary",
243+
"ConversationHistory",
244+
"ConversationTurn",
245+
"ConversationRole",
246+
"ConversationTurns",
247+
"ConversationSessionTurn",
248+
"SpeakPriority",
200249
"AgentThinkResponse",
201250
"AgentThinkRequestOnListeningAction",
202251
"AgentThinkRequestOnThinkingAction",
@@ -253,14 +302,19 @@
253302
"OpenAIRealtime",
254303
"GeminiLive",
255304
"VertexAI",
305+
"XaiGrok",
306+
"XaiRealtime",
256307
"HeyGenAvatar",
257308
"LiveAvatarAvatar",
258309
"AkoolAvatar",
259310
"AnamAvatar",
311+
"GenericAvatar",
260312
"is_heygen_avatar",
261313
"is_live_avatar_avatar",
262314
"is_akool_avatar",
263315
"is_anam_avatar",
316+
"is_generic_avatar",
317+
"is_rtc_avatar",
264318
"validate_avatar_config",
265319
"validate_tts_sample_rate",
266320
]

src/agora_agent/agentkit/vendors/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
OpenAISampleRate,
1212
SampleRate,
1313
)
14-
from .avatar import AkoolAvatar, AnamAvatar, HeyGenAvatar, LiveAvatarAvatar
14+
from .avatar import AkoolAvatar, AnamAvatar, GenericAvatar, HeyGenAvatar, LiveAvatarAvatar
1515
from .llm import Anthropic, AzureOpenAI, Gemini, OpenAI
16-
from .mllm import GeminiLive, OpenAIRealtime, VertexAI
16+
from .mllm import GeminiLive, OpenAIRealtime, VertexAI, XaiGrok, XaiRealtime
1717
from .stt import (
1818
AmazonSTT,
1919
AresSTT,
@@ -82,8 +82,11 @@
8282
"OpenAIRealtime",
8383
"GeminiLive",
8484
"VertexAI",
85+
"XaiGrok",
86+
"XaiRealtime",
8587
"HeyGenAvatar",
8688
"LiveAvatarAvatar",
8789
"AkoolAvatar",
8890
"AnamAvatar",
91+
"GenericAvatar",
8992
]

0 commit comments

Comments
 (0)