@@ -49,7 +49,6 @@ def create(
49
49
* ,
50
50
conversation_config : ConversationalConfig ,
51
51
platform_settings : typing .Optional [AgentPlatformSettingsRequestModel ] = OMIT ,
52
- workflow : typing .Optional [typing .Optional [typing .Any ]] = OMIT ,
53
52
name : typing .Optional [str ] = OMIT ,
54
53
tags : typing .Optional [typing .Sequence [str ]] = OMIT ,
55
54
request_options : typing .Optional [RequestOptions ] = None ,
@@ -65,8 +64,6 @@ def create(
65
64
platform_settings : typing.Optional[AgentPlatformSettingsRequestModel]
66
65
Platform settings for the agent are all settings that aren't related to the conversation orchestration and content.
67
66
68
- workflow : typing.Optional[typing.Optional[typing.Any]]
69
-
70
67
name : typing.Optional[str]
71
68
A name to make the agent easier to find
72
69
@@ -95,7 +92,6 @@ def create(
95
92
_response = self ._raw_client .create (
96
93
conversation_config = conversation_config ,
97
94
platform_settings = platform_settings ,
98
- workflow = workflow ,
99
95
name = name ,
100
96
tags = tags ,
101
97
request_options = request_options ,
@@ -169,7 +165,6 @@ def update(
169
165
* ,
170
166
conversation_config : typing .Optional [ConversationalConfig ] = OMIT ,
171
167
platform_settings : typing .Optional [AgentPlatformSettingsRequestModel ] = OMIT ,
172
- workflow : typing .Optional [typing .Optional [typing .Any ]] = OMIT ,
173
168
name : typing .Optional [str ] = OMIT ,
174
169
tags : typing .Optional [typing .Sequence [str ]] = OMIT ,
175
170
request_options : typing .Optional [RequestOptions ] = None ,
@@ -188,8 +183,6 @@ def update(
188
183
platform_settings : typing.Optional[AgentPlatformSettingsRequestModel]
189
184
Platform settings for the agent are all settings that aren't related to the conversation orchestration and content.
190
185
191
- workflow : typing.Optional[typing.Optional[typing.Any]]
192
-
193
186
name : typing.Optional[str]
194
187
A name to make the agent easier to find
195
188
@@ -219,7 +212,6 @@ def update(
219
212
agent_id ,
220
213
conversation_config = conversation_config ,
221
214
platform_settings = platform_settings ,
222
- workflow = workflow ,
223
215
name = name ,
224
216
tags = tags ,
225
217
request_options = request_options ,
@@ -346,18 +338,22 @@ def simulate_conversation(
346
338
347
339
Examples
348
340
--------
349
- from elevenlabs import ConversationSimulationSpecification, ElevenLabs
341
+ from elevenlabs import (
342
+ AgentConfig,
343
+ ConversationSimulationSpecification,
344
+ ElevenLabs,
345
+ )
350
346
351
347
client = ElevenLabs(
352
348
api_key="YOUR_API_KEY",
353
349
)
354
350
client.conversational_ai.agents.simulate_conversation(
355
351
agent_id="21m00Tcm4TlvDq8ikWAM",
356
352
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
+ ) ,
361
357
),
362
358
)
363
359
"""
@@ -405,18 +401,22 @@ def simulate_conversation_stream(
405
401
406
402
Examples
407
403
--------
408
- from elevenlabs import ConversationSimulationSpecification, ElevenLabs
404
+ from elevenlabs import (
405
+ AgentConfig,
406
+ ConversationSimulationSpecification,
407
+ ElevenLabs,
408
+ )
409
409
410
410
client = ElevenLabs(
411
411
api_key="YOUR_API_KEY",
412
412
)
413
413
client.conversational_ai.agents.simulate_conversation_stream(
414
414
agent_id="21m00Tcm4TlvDq8ikWAM",
415
415
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
+ ) ,
420
420
),
421
421
)
422
422
"""
@@ -457,7 +457,6 @@ async def create(
457
457
* ,
458
458
conversation_config : ConversationalConfig ,
459
459
platform_settings : typing .Optional [AgentPlatformSettingsRequestModel ] = OMIT ,
460
- workflow : typing .Optional [typing .Optional [typing .Any ]] = OMIT ,
461
460
name : typing .Optional [str ] = OMIT ,
462
461
tags : typing .Optional [typing .Sequence [str ]] = OMIT ,
463
462
request_options : typing .Optional [RequestOptions ] = None ,
@@ -473,8 +472,6 @@ async def create(
473
472
platform_settings : typing.Optional[AgentPlatformSettingsRequestModel]
474
473
Platform settings for the agent are all settings that aren't related to the conversation orchestration and content.
475
474
476
- workflow : typing.Optional[typing.Optional[typing.Any]]
477
-
478
475
name : typing.Optional[str]
479
476
A name to make the agent easier to find
480
477
@@ -511,7 +508,6 @@ async def main() -> None:
511
508
_response = await self ._raw_client .create (
512
509
conversation_config = conversation_config ,
513
510
platform_settings = platform_settings ,
514
- workflow = workflow ,
515
511
name = name ,
516
512
tags = tags ,
517
513
request_options = request_options ,
@@ -603,7 +599,6 @@ async def update(
603
599
* ,
604
600
conversation_config : typing .Optional [ConversationalConfig ] = OMIT ,
605
601
platform_settings : typing .Optional [AgentPlatformSettingsRequestModel ] = OMIT ,
606
- workflow : typing .Optional [typing .Optional [typing .Any ]] = OMIT ,
607
602
name : typing .Optional [str ] = OMIT ,
608
603
tags : typing .Optional [typing .Sequence [str ]] = OMIT ,
609
604
request_options : typing .Optional [RequestOptions ] = None ,
@@ -622,8 +617,6 @@ async def update(
622
617
platform_settings : typing.Optional[AgentPlatformSettingsRequestModel]
623
618
Platform settings for the agent are all settings that aren't related to the conversation orchestration and content.
624
619
625
- workflow : typing.Optional[typing.Optional[typing.Any]]
626
-
627
620
name : typing.Optional[str]
628
621
A name to make the agent easier to find
629
622
@@ -661,7 +654,6 @@ async def main() -> None:
661
654
agent_id ,
662
655
conversation_config = conversation_config ,
663
656
platform_settings = platform_settings ,
664
- workflow = workflow ,
665
657
name = name ,
666
658
tags = tags ,
667
659
request_options = request_options ,
@@ -806,7 +798,11 @@ async def simulate_conversation(
806
798
--------
807
799
import asyncio
808
800
809
- from elevenlabs import AsyncElevenLabs, ConversationSimulationSpecification
801
+ from elevenlabs import (
802
+ AgentConfig,
803
+ AsyncElevenLabs,
804
+ ConversationSimulationSpecification,
805
+ )
810
806
811
807
client = AsyncElevenLabs(
812
808
api_key="YOUR_API_KEY",
@@ -817,10 +813,10 @@ async def main() -> None:
817
813
await client.conversational_ai.agents.simulate_conversation(
818
814
agent_id="21m00Tcm4TlvDq8ikWAM",
819
815
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
+ ) ,
824
820
),
825
821
)
826
822
@@ -873,7 +869,11 @@ async def simulate_conversation_stream(
873
869
--------
874
870
import asyncio
875
871
876
- from elevenlabs import AsyncElevenLabs, ConversationSimulationSpecification
872
+ from elevenlabs import (
873
+ AgentConfig,
874
+ AsyncElevenLabs,
875
+ ConversationSimulationSpecification,
876
+ )
877
877
878
878
client = AsyncElevenLabs(
879
879
api_key="YOUR_API_KEY",
@@ -884,10 +884,10 @@ async def main() -> None:
884
884
await client.conversational_ai.agents.simulate_conversation_stream(
885
885
agent_id="21m00Tcm4TlvDq8ikWAM",
886
886
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
+ ) ,
891
891
),
892
892
)
893
893
0 commit comments