@@ -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