Skip to content

Commit fd79ff0

Browse files
authored
Merge pull request #40 from AgoraIO/fern-bot/2026-06-17_07-20-31_063
SDK regeneration
2 parents ef8f5e6 + b83aa5a commit fd79ff0

35 files changed

Lines changed: 3586 additions & 16847 deletions

.fern/replay.lock

Lines changed: 2442 additions & 16835 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/agora_agent/agents/types/start_agents_request_properties_avatar.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class StartAgentsRequestPropertiesAvatar(UncheckedBaseModel):
2525
- `liveavatar`: LiveAvatar (Beta)
2626
- `anam`: Anam (Beta)
2727
- `generic`: Generic (Beta)
28+
- `sensetime`: SenseTime Avatar
2829
"""
2930

3031
params: typing.Optional[typing.Dict[str, typing.Any]] = pydantic.Field(default=None)

src/agora_agent/agents/types/start_agents_request_properties_avatar_vendor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
import typing
44

55
StartAgentsRequestPropertiesAvatarVendor = typing.Union[
6-
typing.Literal["akool", "liveavatar", "anam", "generic", "heygen"], typing.Any
6+
typing.Literal["akool", "liveavatar", "anam", "generic", "sensetime", "heygen"], typing.Any
77
]

src/agora_agent/agents/types/start_agents_request_properties_turn_detection.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import pydantic
66
from ...core.pydantic_utilities import IS_PYDANTIC_V2
77
from ...core.unchecked_base_model import UncheckedBaseModel
8-
from ...types.asr_language import AsrLanguage
98
from .start_agents_request_properties_turn_detection_config import StartAgentsRequestPropertiesTurnDetectionConfig
109
from .start_agents_request_properties_turn_detection_eagerness import StartAgentsRequestPropertiesTurnDetectionEagerness
1110
from .start_agents_request_properties_turn_detection_interrupt_mode import (
@@ -19,11 +18,6 @@ class StartAgentsRequestPropertiesTurnDetection(UncheckedBaseModel):
1918
Conversation turn detection settings. Controls the logic for voice activity detection and conversation turn determination. This object has no effect when `mllm.enable` is true; use `mllm.turn_detection` instead.
2019
"""
2120

22-
language: typing.Optional[AsrLanguage] = pydantic.Field(default=None)
23-
"""
24-
BCP-47 language tag identifying the primary language used for agent interaction.
25-
"""
26-
2721
mode: typing.Optional[typing.Literal["default"]] = pydantic.Field(default=None)
2822
"""
2923
Conversation turn detection mode:

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-agents/v2.2.0",
29+
"User-Agent": "agora-agents/v2.2.1",
3030
"X-Fern-Language": "Python",
3131
"X-Fern-SDK-Name": "agora-agents",
32-
"X-Fern-SDK-Version": "v2.2.0",
32+
"X-Fern-SDK-Version": "v2.2.1",
3333
**(self.get_custom_headers() or {}),
3434
}
3535
headers["Authorization"] = httpx.BasicAuth(self._get_username(), self._get_password())._auth_header

src/agora_agent/types/asr.py

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
from .open_ai_asr_params import OpenAiAsrParams
1919
from .sarvam_asr_params import SarvamAsrParams
2020
from .speechmatics_asr_params import SpeechmaticsAsrParams
21+
from .tencent_asr_params import TencentAsrParams
22+
from .xfyun_asr_params import XfyunAsrParams
23+
from .xfyun_bigmodel_asr_params import XfyunBigmodelAsrParams
24+
from .xfyun_dialect_asr_params import XfyunDialectAsrParams
2125

2226

2327
class Asr_Ares(UncheckedBaseModel):
@@ -35,6 +39,36 @@ class Config:
3539
extra = pydantic.Extra.allow
3640

3741

42+
class Asr_Fengming(UncheckedBaseModel):
43+
vendor: typing.Literal["fengming"] = "fengming"
44+
language: typing.Optional[AsrLanguage] = None
45+
params: typing.Optional[typing.Dict[str, typing.Any]] = None
46+
47+
if IS_PYDANTIC_V2:
48+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
49+
else:
50+
51+
class Config:
52+
frozen = True
53+
smart_union = True
54+
extra = pydantic.Extra.allow
55+
56+
57+
class Asr_Tencent(UncheckedBaseModel):
58+
vendor: typing.Literal["tencent"] = "tencent"
59+
language: typing.Optional[AsrLanguage] = None
60+
params: TencentAsrParams
61+
62+
if IS_PYDANTIC_V2:
63+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
64+
else:
65+
66+
class Config:
67+
frozen = True
68+
smart_union = True
69+
extra = pydantic.Extra.allow
70+
71+
3872
class Asr_Microsoft(UncheckedBaseModel):
3973
vendor: typing.Literal["microsoft"] = "microsoft"
4074
language: typing.Optional[AsrLanguage] = None
@@ -155,9 +189,56 @@ class Config:
155189
extra = pydantic.Extra.allow
156190

157191

192+
class Asr_Xfyun(UncheckedBaseModel):
193+
vendor: typing.Literal["xfyun"] = "xfyun"
194+
language: typing.Optional[AsrLanguage] = None
195+
params: XfyunAsrParams
196+
197+
if IS_PYDANTIC_V2:
198+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
199+
else:
200+
201+
class Config:
202+
frozen = True
203+
smart_union = True
204+
extra = pydantic.Extra.allow
205+
206+
207+
class Asr_XfyunBigmodel(UncheckedBaseModel):
208+
vendor: typing.Literal["xfyun_bigmodel"] = "xfyun_bigmodel"
209+
language: typing.Optional[AsrLanguage] = None
210+
params: XfyunBigmodelAsrParams
211+
212+
if IS_PYDANTIC_V2:
213+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
214+
else:
215+
216+
class Config:
217+
frozen = True
218+
smart_union = True
219+
extra = pydantic.Extra.allow
220+
221+
222+
class Asr_XfyunDialect(UncheckedBaseModel):
223+
vendor: typing.Literal["xfyun_dialect"] = "xfyun_dialect"
224+
language: typing.Optional[AsrLanguage] = None
225+
params: XfyunDialectAsrParams
226+
227+
if IS_PYDANTIC_V2:
228+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
229+
else:
230+
231+
class Config:
232+
frozen = True
233+
smart_union = True
234+
extra = pydantic.Extra.allow
235+
236+
158237
Asr = typing_extensions.Annotated[
159238
typing.Union[
160239
Asr_Ares,
240+
Asr_Fengming,
241+
Asr_Tencent,
161242
Asr_Microsoft,
162243
Asr_Deepgram,
163244
Asr_Openai,
@@ -166,6 +247,9 @@ class Config:
166247
Asr_Assemblyai,
167248
Asr_Speechmatics,
168249
Asr_Sarvam,
250+
Asr_Xfyun,
251+
Asr_XfyunBigmodel,
252+
Asr_XfyunDialect,
169253
],
170254
UnionMetadata(discriminant="vendor"),
171255
]
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
5+
import pydantic
6+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
7+
from ..core.unchecked_base_model import UncheckedBaseModel
8+
from .bytedance_duplex_tts_params import BytedanceDuplexTtsParams
9+
10+
11+
class BytedanceDuplexTts(UncheckedBaseModel):
12+
"""
13+
Bytedance duplex streaming Text-to-Speech configuration.
14+
"""
15+
16+
params: BytedanceDuplexTtsParams
17+
skip_patterns: typing.Optional[typing.List[int]] = pydantic.Field(default=None)
18+
"""
19+
Controls whether the TTS module skips bracketed content when reading LLM response text.
20+
"""
21+
22+
if IS_PYDANTIC_V2:
23+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
24+
else:
25+
26+
class Config:
27+
frozen = True
28+
smart_union = True
29+
extra = pydantic.Extra.allow
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
5+
import pydantic
6+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
7+
from ..core.unchecked_base_model import UncheckedBaseModel
8+
9+
10+
class BytedanceDuplexTtsParams(UncheckedBaseModel):
11+
"""
12+
Bytedance duplex streaming TTS configuration parameters.
13+
"""
14+
15+
app_id: str = pydantic.Field()
16+
"""
17+
Bytedance application ID.
18+
"""
19+
20+
token: str = pydantic.Field()
21+
"""
22+
Bytedance API token.
23+
"""
24+
25+
speaker: str = pydantic.Field()
26+
"""
27+
Duplex TTS speaker identifier.
28+
"""
29+
30+
if IS_PYDANTIC_V2:
31+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
32+
else:
33+
34+
class Config:
35+
frozen = True
36+
smart_union = True
37+
extra = pydantic.Extra.allow
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
5+
import pydantic
6+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
7+
from ..core.unchecked_base_model import UncheckedBaseModel
8+
from .bytedance_tts_params import BytedanceTtsParams
9+
10+
11+
class BytedanceTts(UncheckedBaseModel):
12+
"""
13+
Bytedance Volcano Engine Text-to-Speech configuration.
14+
"""
15+
16+
params: BytedanceTtsParams
17+
skip_patterns: typing.Optional[typing.List[int]] = pydantic.Field(default=None)
18+
"""
19+
Controls whether the TTS module skips bracketed content when reading LLM response text.
20+
"""
21+
22+
if IS_PYDANTIC_V2:
23+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
24+
else:
25+
26+
class Config:
27+
frozen = True
28+
smart_union = True
29+
extra = pydantic.Extra.allow
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# This file was auto-generated by Fern from our API Definition.
2+
3+
import typing
4+
5+
import pydantic
6+
from ..core.pydantic_utilities import IS_PYDANTIC_V2
7+
from ..core.unchecked_base_model import UncheckedBaseModel
8+
9+
10+
class BytedanceTtsParams(UncheckedBaseModel):
11+
"""
12+
Bytedance Volcano Engine TTS configuration parameters.
13+
"""
14+
15+
token: str = pydantic.Field()
16+
"""
17+
Bytedance API token.
18+
"""
19+
20+
app_id: str = pydantic.Field()
21+
"""
22+
Bytedance application ID.
23+
"""
24+
25+
cluster: str = pydantic.Field()
26+
"""
27+
Bytedance cluster name.
28+
"""
29+
30+
voice_type: str = pydantic.Field()
31+
"""
32+
Bytedance voice type.
33+
"""
34+
35+
speed_ratio: typing.Optional[float] = pydantic.Field(default=None)
36+
"""
37+
Speech speed ratio.
38+
"""
39+
40+
volume_ratio: typing.Optional[float] = pydantic.Field(default=None)
41+
"""
42+
Volume ratio.
43+
"""
44+
45+
pitch_ratio: typing.Optional[float] = pydantic.Field(default=None)
46+
"""
47+
Pitch ratio.
48+
"""
49+
50+
emotion: typing.Optional[str] = pydantic.Field(default=None)
51+
"""
52+
Emotion preset.
53+
"""
54+
55+
if IS_PYDANTIC_V2:
56+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
57+
else:
58+
59+
class Config:
60+
frozen = True
61+
smart_union = True
62+
extra = pydantic.Extra.allow

0 commit comments

Comments
 (0)