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
Move the Agora interaction language setting from the unlaunched top-level
AgentKit API into turn_detection.language across TypeScript, Python, and Go.
Remove the top-level interaction language helpers and STT vendor override
fields, keep provider-specific STT language under asr.params, and default
turn_detection.language to en-US when omitted.
Update tests, READMEs, docs, and changelogs to reflect the final v2.1.0 API
surface.
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ pip install agora-agents
20
20
## Quick Start
21
21
22
22
Start with the `Agent` builder: create a client with app credentials, choose your ASR, LLM, and TTS providers, then start a session. Omit vendor API keys for supported Agora-managed models, or provide keys when you want BYOK.
23
-
Use `with_interaction_language()` for Agora `asr.language`; provider-specific STT language values remain under `asr.params`.
23
+
Set Agora interaction language with `turn_detection.language`; provider-specific STT language values remain under `asr.params`.
Use the same `Agent` builder shape, but provide credentials explicitly when you want vendor-managed billing and routing instead of Agora-managed models.
Copy file name to clipboardExpand all lines: changelog.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
8
8
9
9
### Added
10
10
11
-
-**ASR interaction language** — AgentKit now manages Agora `asr.language` through `interaction_language` / `Agent.with_interaction_language()`, validates it against the supported BCP-47 interaction language list, and sends the default `en-US` when no language is provided.
11
+
-**Turn detection language** — AgentKit now manages Agora interaction language through `turn_detection.language`, validates it against the supported BCP-47 language list, and sends the default `en-US` when no language is provided.
12
12
-**Provider parameter parity** — ASR, LLM, MLLM, TTS, and avatar wrappers expose typed provider parameters plus passthrough fields where the generated core supports additional properties.
13
13
14
14
### Changed
@@ -21,7 +21,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
21
21
### Fixed
22
22
23
23
-**Managed-provider validation** — AgentKit validation now distinguishes preset-backed providers from BYOK providers so required provider fields are only required when credentials are caller-supplied.
24
-
-**ASR language separation** — Provider-specific STT language values remain under `asr.params`, while Agora interaction language is emitted separately as `asr.language`.
24
+
-**Language placement** — Provider-specific STT language values remain under `asr.params`, while Agora interaction language is emitted separately as `turn_detection.language`.
Copy file name to clipboardExpand all lines: docs/concepts/agent.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ Each `with_*` method returns a **new** `Agent` instance — the original is unch
64
64
|`with_instructions(text)`|`str`| Deprecated. Use LLM vendor `system_messages` instead. |
65
65
|`with_greeting(text)`|`str`| Deprecated. Use LLM/MLLM vendor `greeting_message` instead. |
66
66
|`with_name(name)`|`str`| Override the agent name |
67
-
|`with_turn_detection(config)`|`TurnDetectionConfig`|Override cascading-flow SOS/EOS detection; use `with_interruption()` for interruption behavior |
67
+
|`with_turn_detection(config)`|`TurnDetectionConfig`|Configure `turn_detection.language` and cascading-flow SOS/EOS detection; use `with_interruption()` for interruption behavior |
68
68
|`with_sal(config)`|`SalConfig`| Set SAL configuration |
69
69
|`with_advanced_features(features)`|`Dict[str, Any]`| Set advanced features |
70
70
|`with_parameters(parameters)`|`SessionParams`| Set session parameters |
Copy file name to clipboardExpand all lines: docs/concepts/vendors.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ tts = ElevenLabsTTS(
75
75
76
76
Used with `agent.with_stt()`.
77
77
78
-
Use `agent.with_interaction_language()` for Agora `asr.language`; it defaults to `en-US`. STT vendor `language` options are serialized under `asr.params` using each provider's own format.
78
+
Use `turn_detection.language` for Agora interaction language; it defaults to `en-US`. STT vendor `language` options are serialized under `asr.params` using each provider's own format.
Override cascading-flow turn detection settings. Use `config.start_of_speech` and `config.end_of_speech` for SOS/EOS detection. Use `with_interruption()` for interruption behavior and MLLM vendor `turn_detection` for MLLM turn detection.
112
+
Override cascading-flow turn detection settings. Use `language` for the Agora interaction language, `config.start_of_speech` and `config.end_of_speech` for SOS/EOS detection, `with_interruption()` for interruption behavior, and MLLM vendor `turn_detection` for MLLM turn detection.
113
113
114
114
Pause-state detection is configured under semantic end-of-speech:
Copy file name to clipboardExpand all lines: docs/reference/vendors.md
+1-8Lines changed: 1 addition & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -318,15 +318,14 @@ The SDK also includes named helpers for the remaining Agora-supported LLM provid
318
318
319
319
## STT Vendors
320
320
321
-
Use `agent.with_interaction_language()` for Agora `asr.language`; it defaults to `en-US`. Provider-specific language values remain under `asr.params` and may use a different format.
321
+
Use `turn_detection.language` for Agora interaction language; it defaults to `en-US`. Provider-specific language values remain under `asr.params` and may use a different format.
0 commit comments