Skip to content

Commit b7f0c36

Browse files
feat(agentkit): release v2.0.0 updates
1 parent 7c2d9d9 commit b7f0c36

3 files changed

Lines changed: 10 additions & 20 deletions

File tree

changelog.md

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,11 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/).
66

7-
## [Unreleased]
7+
## [v2.0.0] — 2026-05-21
88

99
### Added
1010

1111
- **Alias parity**`AsrConfig` (= `SttConfig`), `is_avatar_token_managed`, think type aliases (`ThinkOnListeningAction`, etc.), think value constants, and cross-SDK discovery table in `docs/reference/agent.md`.
12-
13-
### Changed
14-
15-
- **Avatar token gating** — Session enrichment uses `is_avatar_token_managed` (vendor-only); UID checks remain in session logic.
16-
17-
### Deprecated (legacy naming — use replacements)
18-
19-
- **`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-
2712
- **`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.
2813
- **`GenericAvatar`** — New generic avatar wrapper (`vendor: "generic"`) for custom avatar providers.
2914
- **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/).
3318

3419
### Changed
3520

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.
23+
- **Avatar token gating** — Session enrichment uses `is_avatar_token_managed` (vendor-only); UID checks remain in session logic.
3624
- **`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.
3826
- **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.
3927
- **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.
4028
- **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/).
4533

4634
### Migration notes
4735

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+
4838
- **`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.
4939
- **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()`.
5040
- **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`.

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.5.0"
6+
version = "v2.0.0"
77
description = ""
88
readme = "README.md"
99
authors = []

src/agora_agent/core/client_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ def __init__(
2626

2727
def get_headers(self) -> typing.Dict[str, str]:
2828
headers: typing.Dict[str, str] = {
29-
"User-Agent": "agora-agent-server-sdk/v1.5.0",
29+
"User-Agent": "agora-agent-server-sdk/v2.0.0",
3030
"X-Fern-Language": "Python",
3131
"X-Fern-SDK-Name": "agora-agent-server-sdk",
32-
"X-Fern-SDK-Version": "v1.5.0",
32+
"X-Fern-SDK-Version": "v2.0.0",
3333
**(self.get_custom_headers() or {}),
3434
}
3535
headers["Authorization"] = httpx.BasicAuth(self._get_username(), self._get_password())._auth_header

0 commit comments

Comments
 (0)