You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**`HeyGenAvatar`** — Use `LiveAvatarAvatar`. Emits `DeprecationWarning`.
20
-
-**`is_rtc_avatar`** — Use `is_avatar_token_managed` for vendor gating. Emits `DeprecationWarning`.
21
-
-**`AgentThinkRequestOn*`** / **`AgentThinkResponse`** — Use `ThinkOn*` / `ThinkResponse`.
22
-
23
-
## [v1.5.0] — 2026-05-20
24
-
25
-
### Added
26
-
27
12
-**`XaiGrok`** — New MLLM wrapper for xAI Grok (`mllm.vendor`: `"xai"`), including Realtime API URL, voice, language, sample rate, modalities, messages, and MLLM turn detection support.
28
13
-**`GenericAvatar`** — New generic avatar wrapper (`vendor: "generic"`) for custom avatar providers.
29
14
-**Avatar token enrichment** — `AgentSession.start()` now fills missing generic avatar `agora_appid` and `agora_channel` from the session and generates missing avatar `agora_token` values for HeyGen, LiveAvatar, and Generic avatars using each avatar's `agora_uid`.
@@ -33,8 +18,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
33
18
34
19
### Changed
35
20
21
+
-**ConvoAI token options** — `generate_convo_ai_token()` now accepts an integer `uid` and handles the internal token string conversion for users, agents, and avatars.
22
+
-**Avatar token generation** — Removed the dedicated `generate_avatar_rtc_token()` wrapper; avatar RTC tokens use the existing ConvoAI token helper.
-**`XaiGrok` is the primary xAI MLLM class** — Matches the product name ([xAI Grok](https://docs.agora.io/en/conversational-ai/models/mllm/xai)) and the TypeScript/Go SDKs.
37
-
-**Package version** — Bumped to `v1.5.0` to match the Fern-generated SDK headers.
25
+
-**Package version** — Bumped to `v2.0.0` to match the Fern-generated SDK headers.
38
26
-**RTM data channel default** — When `advanced_features.enable_rtm=True`, AgentKit now defaults `parameters.data_channel` to `"rtm"` unless the caller explicitly sets a data channel.
39
27
-**Agent-level LLM overrides** — In the standard ASR + LLM + TTS pipeline, agent-level `greeting`, `failure_message`, and `max_history` now override vendor defaults, matching the TypeScript SDK. In MLLM mode, agent-level `greeting` and `failure_message` fill only missing fields.
40
28
-**MLLM core alignment** — MLLM wrappers no longer expose or emit unsupported `predefined_tools` or `max_history` fields because they are not present in the generated v2.7 core `mllm` type.
@@ -45,6 +33,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
45
33
46
34
### Migration notes
47
35
36
+
-**Deprecated aliases** — Use `LiveAvatarAvatar` instead of `HeyGenAvatar`, `is_avatar_token_managed` instead of `is_rtc_avatar`, and `ThinkOn*` / `ThinkResponse` instead of `AgentThinkRequestOn*` / `AgentThinkResponse`.
37
+
48
38
-**`think()` default** — The server default for `on_listening_action` changed from `inject` to `interrupt` in API v2.7. Pass `on_listening_action="inject"` explicitly to preserve the old behavior.
49
39
-**Turn analytics pagination** — Sessions with more than 50 turns must request additional pages via `get_turns(page_index=..., page_size=...)` or use `get_all_turns()`.
50
40
-**Error reasons** — API v2.7 adds status codes `401`, `429`, and `500`; `InvalidRequest` is split into `InvalidRequestBody`, `MissingRequiredField`, and `InvalidFieldValue`, with new reasons such as `ServiceNotEnabled`, `AccountSuspended`, and `ResourceAllocationFailed`.
0 commit comments