Skip to content

Commit 79b0a95

Browse files
SDK regeneration
Unable to analyze changes with AI, incrementing PATCH version.
1 parent 61ccbbc commit 79b0a95

89 files changed

Lines changed: 687 additions & 734 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -36,42 +36,42 @@ Instantiate and use the client with the following:
3636

3737
```python
3838
from agoraio import Agora
39-
from agoraio.agent_management import (
40-
StartAgentManagementRequestProperties,
41-
StartAgentManagementRequestPropertiesAdvancedFeatures,
42-
StartAgentManagementRequestPropertiesAsr,
43-
StartAgentManagementRequestPropertiesLlm,
44-
StartAgentManagementRequestPropertiesTts,
39+
from agoraio.agents import (
40+
StartAgentsRequestProperties,
41+
StartAgentsRequestPropertiesAdvancedFeatures,
42+
StartAgentsRequestPropertiesAsr,
43+
StartAgentsRequestPropertiesLlm,
44+
StartAgentsRequestPropertiesTts,
4545
)
4646

4747
client = Agora(
4848
username="YOUR_USERNAME",
4949
password="YOUR_PASSWORD",
5050
)
51-
client.agent_management.start(
51+
client.agents.start(
5252
appid="appid",
5353
name="unique_name",
54-
properties=StartAgentManagementRequestProperties(
54+
properties=StartAgentsRequestProperties(
5555
channel="channel_name",
5656
token="token",
5757
agent_rtc_uid="1001",
5858
remote_rtc_uids=["1002"],
5959
idle_timeout=120,
60-
advanced_features=StartAgentManagementRequestPropertiesAdvancedFeatures(
60+
advanced_features=StartAgentsRequestPropertiesAdvancedFeatures(
6161
enable_aivad=True,
6262
),
63-
asr=StartAgentManagementRequestPropertiesAsr(
63+
asr=StartAgentsRequestPropertiesAsr(
6464
language="en-US",
6565
),
66-
tts=StartAgentManagementRequestPropertiesTts(
66+
tts=StartAgentsRequestPropertiesTts(
6767
vendor="microsoft",
6868
params={
6969
"key": "<your_tts_api_key>",
7070
"region": "eastus",
7171
"voice_name": "en-US-AndrewMultilingualNeural",
7272
},
7373
),
74-
llm=StartAgentManagementRequestPropertiesLlm(
74+
llm=StartAgentsRequestPropertiesLlm(
7575
url="https://api.openai.com/v1/chat/completions",
7676
api_key="<your_llm_key>",
7777
system_messages=[
@@ -94,12 +94,12 @@ The SDK also exports an `async` client so that you can make non-blocking calls t
9494
import asyncio
9595

9696
from agoraio import AsyncAgora
97-
from agoraio.agent_management import (
98-
StartAgentManagementRequestProperties,
99-
StartAgentManagementRequestPropertiesAdvancedFeatures,
100-
StartAgentManagementRequestPropertiesAsr,
101-
StartAgentManagementRequestPropertiesLlm,
102-
StartAgentManagementRequestPropertiesTts,
97+
from agoraio.agents import (
98+
StartAgentsRequestProperties,
99+
StartAgentsRequestPropertiesAdvancedFeatures,
100+
StartAgentsRequestPropertiesAsr,
101+
StartAgentsRequestPropertiesLlm,
102+
StartAgentsRequestPropertiesTts,
103103
)
104104

105105
client = AsyncAgora(
@@ -109,30 +109,30 @@ client = AsyncAgora(
109109

110110

111111
async def main() -> None:
112-
await client.agent_management.start(
112+
await client.agents.start(
113113
appid="appid",
114114
name="unique_name",
115-
properties=StartAgentManagementRequestProperties(
115+
properties=StartAgentsRequestProperties(
116116
channel="channel_name",
117117
token="token",
118118
agent_rtc_uid="1001",
119119
remote_rtc_uids=["1002"],
120120
idle_timeout=120,
121-
advanced_features=StartAgentManagementRequestPropertiesAdvancedFeatures(
121+
advanced_features=StartAgentsRequestPropertiesAdvancedFeatures(
122122
enable_aivad=True,
123123
),
124-
asr=StartAgentManagementRequestPropertiesAsr(
124+
asr=StartAgentsRequestPropertiesAsr(
125125
language="en-US",
126126
),
127-
tts=StartAgentManagementRequestPropertiesTts(
127+
tts=StartAgentsRequestPropertiesTts(
128128
vendor="microsoft",
129129
params={
130130
"key": "<your_tts_api_key>",
131131
"region": "eastus",
132132
"voice_name": "en-US-AndrewMultilingualNeural",
133133
},
134134
),
135-
llm=StartAgentManagementRequestPropertiesLlm(
135+
llm=StartAgentsRequestPropertiesLlm(
136136
url="https://api.openai.com/v1/chat/completions",
137137
api_key="<your_llm_key>",
138138
system_messages=[
@@ -159,7 +159,7 @@ will be thrown.
159159
from agoraio.core.api_error import ApiError
160160

161161
try:
162-
client.agent_management.start(...)
162+
client.agents.start(...)
163163
except ApiError as e:
164164
print(e.status_code)
165165
print(e.body)
@@ -176,7 +176,7 @@ client = Agora(
176176
username="YOUR_USERNAME",
177177
password="YOUR_PASSWORD",
178178
)
179-
response = client.agent_management.list(
179+
response = client.agents.list(
180180
appid="appid",
181181
)
182182
for item in response:
@@ -188,7 +188,7 @@ for page in response.iter_pages():
188188

189189
```python
190190
# You can also iterate through pages and access the typed response per page
191-
pager = client.agent_management.list(...)
191+
pager = client.agents.list(...)
192192
for page in pager.iter_pages():
193193
print(page.response) # access the typed response for each page
194194
for item in page:
@@ -208,10 +208,10 @@ from agoraio import Agora
208208
client = Agora(
209209
...,
210210
)
211-
response = client.agent_management.with_raw_response.start(...)
211+
response = client.agents.with_raw_response.start(...)
212212
print(response.headers) # access the response headers
213213
print(response.data) # access the underlying object
214-
pager = client.agent_management.list(...)
214+
pager = client.agents.list(...)
215215
print(pager.response) # access the typed response for the first page
216216
for item in pager:
217217
print(item) # access the underlying object(s)
@@ -236,7 +236,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
236236
Use the `max_retries` request option to configure this behavior.
237237

238238
```python
239-
client.agent_management.start(..., request_options={
239+
client.agents.start(..., request_options={
240240
"max_retries": 1
241241
})
242242
```
@@ -256,7 +256,7 @@ client = Agora(
256256

257257

258258
# Override timeout for a specific method
259-
client.agent_management.start(..., request_options={
259+
client.agents.start(..., request_options={
260260
"timeout_in_seconds": 1
261261
})
262262
```

changelog.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
## 0.0.6 - 2025-11-19
2-
* docs: remove duplicate table of contents and changelog file
3-
* Clean up documentation by removing a duplicated table of contents section in the README and deleting the outdated changelog.md file. This streamlines the documentation structure and improves readability by eliminating redundant navigation elements.
4-
* Key changes:
5-
* Remove duplicate table of contents section from README.md
6-
* Delete changelog.md file to consolidate documentation
7-
* Improve documentation clarity and navigation flow
8-
* 🌿 Generated with Fern
1+
## 0.0.7 - 2025-11-20
2+
* SDK regeneration
3+
* Unable to analyze changes with AI, incrementing PATCH version.
94

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "agoraio-sdk"
33

44
[tool.poetry]
55
name = "agoraio-sdk"
6-
version = "0.0.6"
6+
version = "0.0.7"
77
description = ""
88
readme = "README.md"
99
authors = []

0 commit comments

Comments
 (0)