Skip to content

Commit 2567cee

Browse files
SDK regeneration (#600)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 84492bc commit 2567cee

File tree

9 files changed

+128
-86
lines changed

9 files changed

+128
-86
lines changed

pyproject.toml

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

44
[tool.poetry]
55
name = "elevenlabs"
6-
version = "v2.9.0"
6+
version = "v2.9.1"
77
description = ""
88
readme = "README.md"
99
authors = []

reference.md

Lines changed: 18 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6172,14 +6172,6 @@ client.conversational_ai.agents.create(
61726172
<dl>
61736173
<dd>
61746174

6175-
**workflow:** `typing.Optional[typing.Optional[typing.Any]]`
6176-
6177-
</dd>
6178-
</dl>
6179-
6180-
<dl>
6181-
<dd>
6182-
61836175
**name:** `typing.Optional[str]` — A name to make the agent easier to find
61846176

61856177
</dd>
@@ -6422,14 +6414,6 @@ client.conversational_ai.agents.update(
64226414
<dl>
64236415
<dd>
64246416

6425-
**workflow:** `typing.Optional[typing.Optional[typing.Any]]`
6426-
6427-
</dd>
6428-
</dl>
6429-
6430-
<dl>
6431-
<dd>
6432-
64336417
**name:** `typing.Optional[str]` — A name to make the agent easier to find
64346418

64356419
</dd>
@@ -6647,18 +6631,22 @@ Run a conversation between the agent and a simulated user.
66476631
<dd>
66486632

66496633
```python
6650-
from elevenlabs import ConversationSimulationSpecification, ElevenLabs
6634+
from elevenlabs import (
6635+
AgentConfig,
6636+
ConversationSimulationSpecification,
6637+
ElevenLabs,
6638+
)
66516639

66526640
client = ElevenLabs(
66536641
api_key="YOUR_API_KEY",
66546642
)
66556643
client.conversational_ai.agents.simulate_conversation(
66566644
agent_id="21m00Tcm4TlvDq8ikWAM",
66576645
simulation_specification=ConversationSimulationSpecification(
6658-
simulated_user_config={
6659-
"first_message": "Hello, how can I help you today?",
6660-
"language": "en",
6661-
},
6646+
simulated_user_config=AgentConfig(
6647+
first_message="Hello, how can I help you today?",
6648+
language="en",
6649+
),
66626650
),
66636651
)
66646652

@@ -6747,18 +6735,22 @@ Run a conversation between the agent and a simulated user and stream back the re
67476735
<dd>
67486736

67496737
```python
6750-
from elevenlabs import ConversationSimulationSpecification, ElevenLabs
6738+
from elevenlabs import (
6739+
AgentConfig,
6740+
ConversationSimulationSpecification,
6741+
ElevenLabs,
6742+
)
67516743

67526744
client = ElevenLabs(
67536745
api_key="YOUR_API_KEY",
67546746
)
67556747
client.conversational_ai.agents.simulate_conversation_stream(
67566748
agent_id="21m00Tcm4TlvDq8ikWAM",
67576749
simulation_specification=ConversationSimulationSpecification(
6758-
simulated_user_config={
6759-
"first_message": "Hello, how can I help you today?",
6760-
"language": "en",
6761-
},
6750+
simulated_user_config=AgentConfig(
6751+
first_message="Hello, how can I help you today?",
6752+
language="en",
6753+
),
67626754
),
67636755
)
67646756

src/elevenlabs/conversational_ai/agents/client.py

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ def create(
4949
*,
5050
conversation_config: ConversationalConfig,
5151
platform_settings: typing.Optional[AgentPlatformSettingsRequestModel] = OMIT,
52-
workflow: typing.Optional[typing.Optional[typing.Any]] = OMIT,
5352
name: typing.Optional[str] = OMIT,
5453
tags: typing.Optional[typing.Sequence[str]] = OMIT,
5554
request_options: typing.Optional[RequestOptions] = None,
@@ -65,8 +64,6 @@ def create(
6564
platform_settings : typing.Optional[AgentPlatformSettingsRequestModel]
6665
Platform settings for the agent are all settings that aren't related to the conversation orchestration and content.
6766
68-
workflow : typing.Optional[typing.Optional[typing.Any]]
69-
7067
name : typing.Optional[str]
7168
A name to make the agent easier to find
7269
@@ -95,7 +92,6 @@ def create(
9592
_response = self._raw_client.create(
9693
conversation_config=conversation_config,
9794
platform_settings=platform_settings,
98-
workflow=workflow,
9995
name=name,
10096
tags=tags,
10197
request_options=request_options,
@@ -169,7 +165,6 @@ def update(
169165
*,
170166
conversation_config: typing.Optional[ConversationalConfig] = OMIT,
171167
platform_settings: typing.Optional[AgentPlatformSettingsRequestModel] = OMIT,
172-
workflow: typing.Optional[typing.Optional[typing.Any]] = OMIT,
173168
name: typing.Optional[str] = OMIT,
174169
tags: typing.Optional[typing.Sequence[str]] = OMIT,
175170
request_options: typing.Optional[RequestOptions] = None,
@@ -188,8 +183,6 @@ def update(
188183
platform_settings : typing.Optional[AgentPlatformSettingsRequestModel]
189184
Platform settings for the agent are all settings that aren't related to the conversation orchestration and content.
190185
191-
workflow : typing.Optional[typing.Optional[typing.Any]]
192-
193186
name : typing.Optional[str]
194187
A name to make the agent easier to find
195188
@@ -219,7 +212,6 @@ def update(
219212
agent_id,
220213
conversation_config=conversation_config,
221214
platform_settings=platform_settings,
222-
workflow=workflow,
223215
name=name,
224216
tags=tags,
225217
request_options=request_options,
@@ -346,18 +338,22 @@ def simulate_conversation(
346338
347339
Examples
348340
--------
349-
from elevenlabs import ConversationSimulationSpecification, ElevenLabs
341+
from elevenlabs import (
342+
AgentConfig,
343+
ConversationSimulationSpecification,
344+
ElevenLabs,
345+
)
350346
351347
client = ElevenLabs(
352348
api_key="YOUR_API_KEY",
353349
)
354350
client.conversational_ai.agents.simulate_conversation(
355351
agent_id="21m00Tcm4TlvDq8ikWAM",
356352
simulation_specification=ConversationSimulationSpecification(
357-
simulated_user_config={
358-
"first_message": "Hello, how can I help you today?",
359-
"language": "en",
360-
},
353+
simulated_user_config=AgentConfig(
354+
first_message="Hello, how can I help you today?",
355+
language="en",
356+
),
361357
),
362358
)
363359
"""
@@ -405,18 +401,22 @@ def simulate_conversation_stream(
405401
406402
Examples
407403
--------
408-
from elevenlabs import ConversationSimulationSpecification, ElevenLabs
404+
from elevenlabs import (
405+
AgentConfig,
406+
ConversationSimulationSpecification,
407+
ElevenLabs,
408+
)
409409
410410
client = ElevenLabs(
411411
api_key="YOUR_API_KEY",
412412
)
413413
client.conversational_ai.agents.simulate_conversation_stream(
414414
agent_id="21m00Tcm4TlvDq8ikWAM",
415415
simulation_specification=ConversationSimulationSpecification(
416-
simulated_user_config={
417-
"first_message": "Hello, how can I help you today?",
418-
"language": "en",
419-
},
416+
simulated_user_config=AgentConfig(
417+
first_message="Hello, how can I help you today?",
418+
language="en",
419+
),
420420
),
421421
)
422422
"""
@@ -457,7 +457,6 @@ async def create(
457457
*,
458458
conversation_config: ConversationalConfig,
459459
platform_settings: typing.Optional[AgentPlatformSettingsRequestModel] = OMIT,
460-
workflow: typing.Optional[typing.Optional[typing.Any]] = OMIT,
461460
name: typing.Optional[str] = OMIT,
462461
tags: typing.Optional[typing.Sequence[str]] = OMIT,
463462
request_options: typing.Optional[RequestOptions] = None,
@@ -473,8 +472,6 @@ async def create(
473472
platform_settings : typing.Optional[AgentPlatformSettingsRequestModel]
474473
Platform settings for the agent are all settings that aren't related to the conversation orchestration and content.
475474
476-
workflow : typing.Optional[typing.Optional[typing.Any]]
477-
478475
name : typing.Optional[str]
479476
A name to make the agent easier to find
480477
@@ -511,7 +508,6 @@ async def main() -> None:
511508
_response = await self._raw_client.create(
512509
conversation_config=conversation_config,
513510
platform_settings=platform_settings,
514-
workflow=workflow,
515511
name=name,
516512
tags=tags,
517513
request_options=request_options,
@@ -603,7 +599,6 @@ async def update(
603599
*,
604600
conversation_config: typing.Optional[ConversationalConfig] = OMIT,
605601
platform_settings: typing.Optional[AgentPlatformSettingsRequestModel] = OMIT,
606-
workflow: typing.Optional[typing.Optional[typing.Any]] = OMIT,
607602
name: typing.Optional[str] = OMIT,
608603
tags: typing.Optional[typing.Sequence[str]] = OMIT,
609604
request_options: typing.Optional[RequestOptions] = None,
@@ -622,8 +617,6 @@ async def update(
622617
platform_settings : typing.Optional[AgentPlatformSettingsRequestModel]
623618
Platform settings for the agent are all settings that aren't related to the conversation orchestration and content.
624619
625-
workflow : typing.Optional[typing.Optional[typing.Any]]
626-
627620
name : typing.Optional[str]
628621
A name to make the agent easier to find
629622
@@ -661,7 +654,6 @@ async def main() -> None:
661654
agent_id,
662655
conversation_config=conversation_config,
663656
platform_settings=platform_settings,
664-
workflow=workflow,
665657
name=name,
666658
tags=tags,
667659
request_options=request_options,
@@ -806,7 +798,11 @@ async def simulate_conversation(
806798
--------
807799
import asyncio
808800
809-
from elevenlabs import AsyncElevenLabs, ConversationSimulationSpecification
801+
from elevenlabs import (
802+
AgentConfig,
803+
AsyncElevenLabs,
804+
ConversationSimulationSpecification,
805+
)
810806
811807
client = AsyncElevenLabs(
812808
api_key="YOUR_API_KEY",
@@ -817,10 +813,10 @@ async def main() -> None:
817813
await client.conversational_ai.agents.simulate_conversation(
818814
agent_id="21m00Tcm4TlvDq8ikWAM",
819815
simulation_specification=ConversationSimulationSpecification(
820-
simulated_user_config={
821-
"first_message": "Hello, how can I help you today?",
822-
"language": "en",
823-
},
816+
simulated_user_config=AgentConfig(
817+
first_message="Hello, how can I help you today?",
818+
language="en",
819+
),
824820
),
825821
)
826822
@@ -873,7 +869,11 @@ async def simulate_conversation_stream(
873869
--------
874870
import asyncio
875871
876-
from elevenlabs import AsyncElevenLabs, ConversationSimulationSpecification
872+
from elevenlabs import (
873+
AgentConfig,
874+
AsyncElevenLabs,
875+
ConversationSimulationSpecification,
876+
)
877877
878878
client = AsyncElevenLabs(
879879
api_key="YOUR_API_KEY",
@@ -884,10 +884,10 @@ async def main() -> None:
884884
await client.conversational_ai.agents.simulate_conversation_stream(
885885
agent_id="21m00Tcm4TlvDq8ikWAM",
886886
simulation_specification=ConversationSimulationSpecification(
887-
simulated_user_config={
888-
"first_message": "Hello, how can I help you today?",
889-
"language": "en",
890-
},
887+
simulated_user_config=AgentConfig(
888+
first_message="Hello, how can I help you today?",
889+
language="en",
890+
),
891891
),
892892
)
893893

0 commit comments

Comments
 (0)