Skip to content

Commit c19108a

Browse files
committed
[fern-generated] Update SDK
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-python-sdk: 4.37.0
1 parent a9cf0ef commit c19108a

29 files changed

Lines changed: 459 additions & 56 deletions

.fern/metadata.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"cliVersion": "4.4.4",
2+
"cliVersion": "5.0.0",
33
"generatorName": "fernapi/fern-python-sdk",
44
"generatorVersion": "4.37.0",
55
"generatorConfig": {
@@ -12,5 +12,6 @@
1212
"skip_validation": true
1313
},
1414
"exclude_types_from_init_exports": true
15-
}
15+
},
16+
"originGitCommit": "b55cdf73dddbda3aa248668eefd04d21d60ee675"
1617
}

.fern/replay.lock

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

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@
33
__pycache__/
44
dist/
55
poetry.toml
6-
.venv/

PYTHON-AGENTKIT-SNAKE-CASE-AUDIT.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/agora_agent/agents/client.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from .types.get_history_agents_response import GetHistoryAgentsResponse
1111
from .types.get_turns_agents_response import GetTurnsAgentsResponse
1212
from .types.interrupt_agents_response import InterruptAgentsResponse
13-
from .types.list_agents_request_state import ListAgentsRequestState
1413
from .types.list_agents_response import ListAgentsResponse
1514
from .types.list_agents_response_data_list_item import ListAgentsResponseDataListItem
1615
from .types.speak_agents_request_priority import SpeakAgentsRequestPriority
@@ -161,7 +160,7 @@ def list(
161160
channel: typing.Optional[str] = None,
162161
from_time: typing.Optional[float] = None,
163162
to_time: typing.Optional[float] = None,
164-
state: typing.Optional[ListAgentsRequestState] = None,
163+
state: typing.Optional[str] = None,
165164
limit: typing.Optional[int] = None,
166165
cursor: typing.Optional[str] = None,
167166
request_options: typing.Optional[RequestOptions] = None,
@@ -183,8 +182,8 @@ def list(
183182
to_time : typing.Optional[float]
184183
The end timestamp (in seconds) for the query. Default is current time.
185184
186-
state : typing.Optional[ListAgentsRequestState]
187-
The agent state to filter by. Only one state can be specified per query:
185+
state : typing.Optional[str]
186+
The agent state filter. You can specify one or more agent states as a comma-separated list in a single request, for example `state=0,1,2`:
188187
- `IDLE` (0): Agent is idle.
189188
- `STARTING` (1): The agent is being started.
190189
- `RUNNING` (2): The agent is running.
@@ -729,7 +728,7 @@ async def list(
729728
channel: typing.Optional[str] = None,
730729
from_time: typing.Optional[float] = None,
731730
to_time: typing.Optional[float] = None,
732-
state: typing.Optional[ListAgentsRequestState] = None,
731+
state: typing.Optional[str] = None,
733732
limit: typing.Optional[int] = None,
734733
cursor: typing.Optional[str] = None,
735734
request_options: typing.Optional[RequestOptions] = None,
@@ -751,8 +750,8 @@ async def list(
751750
to_time : typing.Optional[float]
752751
The end timestamp (in seconds) for the query. Default is current time.
753752
754-
state : typing.Optional[ListAgentsRequestState]
755-
The agent state to filter by. Only one state can be specified per query:
753+
state : typing.Optional[str]
754+
The agent state filter. You can specify one or more agent states as a comma-separated list in a single request, for example `state=0,1,2`:
756755
- `IDLE` (0): Agent is idle.
757756
- `STARTING` (1): The agent is being started.
758757
- `RUNNING` (2): The agent is running.

src/agora_agent/agents/raw_client.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from .types.get_history_agents_response import GetHistoryAgentsResponse
1616
from .types.get_turns_agents_response import GetTurnsAgentsResponse
1717
from .types.interrupt_agents_response import InterruptAgentsResponse
18-
from .types.list_agents_request_state import ListAgentsRequestState
1918
from .types.list_agents_response import ListAgentsResponse
2019
from .types.list_agents_response_data_list_item import ListAgentsResponseDataListItem
2120
from .types.speak_agents_request_priority import SpeakAgentsRequestPriority
@@ -115,7 +114,7 @@ def list(
115114
channel: typing.Optional[str] = None,
116115
from_time: typing.Optional[float] = None,
117116
to_time: typing.Optional[float] = None,
118-
state: typing.Optional[ListAgentsRequestState] = None,
117+
state: typing.Optional[str] = None,
119118
limit: typing.Optional[int] = None,
120119
cursor: typing.Optional[str] = None,
121120
request_options: typing.Optional[RequestOptions] = None,
@@ -137,8 +136,8 @@ def list(
137136
to_time : typing.Optional[float]
138137
The end timestamp (in seconds) for the query. Default is current time.
139138
140-
state : typing.Optional[ListAgentsRequestState]
141-
The agent state to filter by. Only one state can be specified per query:
139+
state : typing.Optional[str]
140+
The agent state filter. You can specify one or more agent states as a comma-separated list in a single request, for example `state=0,1,2`:
142141
- `IDLE` (0): Agent is idle.
143142
- `STARTING` (1): The agent is being started.
144143
- `RUNNING` (2): The agent is running.
@@ -656,7 +655,7 @@ async def list(
656655
channel: typing.Optional[str] = None,
657656
from_time: typing.Optional[float] = None,
658657
to_time: typing.Optional[float] = None,
659-
state: typing.Optional[ListAgentsRequestState] = None,
658+
state: typing.Optional[str] = None,
660659
limit: typing.Optional[int] = None,
661660
cursor: typing.Optional[str] = None,
662661
request_options: typing.Optional[RequestOptions] = None,
@@ -678,8 +677,8 @@ async def list(
678677
to_time : typing.Optional[float]
679678
The end timestamp (in seconds) for the query. Default is current time.
680679
681-
state : typing.Optional[ListAgentsRequestState]
682-
The agent state to filter by. Only one state can be specified per query:
680+
state : typing.Optional[str]
681+
The agent state filter. You can specify one or more agent states as a comma-separated list in a single request, for example `state=0,1,2`:
683682
- `IDLE` (0): Agent is idle.
684683
- `STARTING` (1): The agent is being started.
685684
- `RUNNING` (2): The agent is running.

src/agora_agent/agents/types/get_history_agents_response_contents_item.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,21 @@ class GetHistoryAgentsResponseContentsItem(UncheckedBaseModel):
2121
Message content.
2222
"""
2323

24+
speech_start_ms: typing.Optional[int] = pydantic.Field(default=None)
25+
"""
26+
The start timestamp of the speech segment in milliseconds, relative to the beginning of the current session. Returned only when `llm.vendor='custom'`.
27+
"""
28+
29+
speech_end_ms: typing.Optional[int] = pydantic.Field(default=None)
30+
"""
31+
The end timestamp of the speech segment in milliseconds, relative to the beginning of the current session. Returned only when `llm.vendor='custom'`.
32+
"""
33+
34+
speech_algorithmic_delay: typing.Optional[int] = pydantic.Field(default=None)
35+
"""
36+
The total delay in milliseconds introduced by audio processing algorithms, including noise reduction, background voice suppression, and voiceprint locking, after audio is captured from the user's microphone. Use this value to align timestamps with cloud recording audio. Returned only when `llm.vendor='custom'`, `contents[].role='user'`, and actual voice input is present.
37+
"""
38+
2439
if IS_PYDANTIC_V2:
2540
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
2641
else:

src/agora_agent/agents/types/list_agents_request_state.py

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/agora_agent/agents/types/start_agents_request_properties.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class StartAgentsRequestProperties(UncheckedBaseModel):
5454

5555
idle_timeout: typing.Optional[int] = pydantic.Field(default=None)
5656
"""
57-
Sets the timeout after all the users specified in `remote_rtc_uids` are detected to have left the channel. When the timeout value is exceeded, the agent automatically stops and exits the channel. A value of `0` means that the agent does not exit until it is stopped manually.
57+
Sets the timeout after all the users specified in `remote_rtc_uids` are detected to have left the channel. When the timeout value is exceeded, the agent automatically stops and exits the channel. A value of `0` disables exit due to channel idle timeout only; it does not allow the agent to run indefinitely. Regardless of this value, the maximum runtime of a single task is 72 hours, after which the agent automatically exits.
5858
"""
5959

6060
geofence: typing.Optional[StartAgentsRequestPropertiesGeofence] = pydantic.Field(default=None)

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
@@ -26,6 +26,7 @@ class StartAgentsRequestPropertiesAvatar(UncheckedBaseModel):
2626
- `anam`: Anam (Beta)
2727
- `generic`: Generic (Beta)
2828
- `sensetime`: SenseTime Avatar
29+
- `spatius`: Spatius Avatar
2930
"""
3031

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

0 commit comments

Comments
 (0)