File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
sdk/evaluation/azure-ai-evaluation/azure/ai/evaluation/simulator Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,9 @@ async def _extend_conversation_with_simulator(
287
287
288
288
while len (current_simulation ) < max_conversation_turns :
289
289
user_response_content = user_flow (
290
- task = "Continue the conversation" , conversation_history = current_simulation .to_list ()
290
+ task = "Continue the conversation" ,
291
+ conversation_history = current_simulation .to_list (),
292
+ ** user_simulator_prompty_kwargs
291
293
)
292
294
user_response = self ._parse_prompty_response (response = user_response_content )
293
295
user_turn = Turn (role = ConversationRole .USER , content = user_response ["content" ])
@@ -618,9 +620,12 @@ async def _build_user_simulation_response(
618
620
prompty_model_config = self ._build_prompty_model_config (),
619
621
user_simulator_prompty_kwargs = user_simulator_prompty_kwargs ,
620
622
)
621
-
622
623
try :
623
- response_content = user_flow (task = task , conversation_history = conversation_history )
624
+ response_content = user_flow (
625
+ task = task ,
626
+ conversation_history = conversation_history ,
627
+ ** user_simulator_prompty_kwargs
628
+ )
624
629
user_response = self ._parse_prompty_response (response = response_content )
625
630
return user_response ["content" ]
626
631
except Exception as e :
You can’t perform that action at this time.
0 commit comments