UserConversationSimulationEvalRunDataSource interface
Evaluates a model or agent by simulating user conversations against it.
Each source item defines a test scenario. Use a JSONL source or an inline_user_conversation_simulation source with strongly typed test cases. JSONL attributes use the inline test-case property names by default; specify data_mapping only when the dataset uses different names. The model specified by model_configuration generates the simulated user's turns and drives the conversation with target until it reaches the desired length or maximum turn limit. The evaluation's testing criteria are then applied to the conversation.
- Extends
Properties
| data_mapping | Maps JSONL dataset attributes to user conversation simulation inputs when their names differ from the defaults. The default attribute names are |
| default_simulation_configuration | Default configuration for generating simulated user conversations and persisting their output. Conversation properties in a test case's |
| model_configuration | Model used to simulate the user side of each conversation by generating turns sent to the evaluated |
| source | Test scenarios supplied as JSONL rows or strongly typed inline test cases. |
| target | Model or agent being evaluated. It receives turns from the simulated user. |
| type | The type of data source, always |
Property Details
data_mapping
Maps JSONL dataset attributes to user conversation simulation inputs when their names differ from the defaults. The default attribute names are test_case_id, test_case_category, test_case_description, and simulation_configuration, matching UserConversationSimulationTestCase. Omit when the dataset uses these names or when using inline_user_conversation_simulation.
data_mapping?: Record<string, string>
Property Value
Record<string, string>
default_simulation_configuration
Default configuration for generating simulated user conversations and persisting their output. Conversation properties in a test case's simulation_configuration override the corresponding defaults.
default_simulation_configuration?: UserConversationSimulationDefaultConfiguration
Property Value
model_configuration
Model used to simulate the user side of each conversation by generating turns sent to the evaluated target.
model_configuration: EvaluationModelConfiguration
Property Value
source
Test scenarios supplied as JSONL rows or strongly typed inline test cases.
source: UserConversationSimulationSource
Property Value
target
Model or agent being evaluated. It receives turns from the simulated user.
target: EvaluationTargetUnion
Property Value
type
The type of data source, always azure_ai_user_conversation_simulation.
type: "azure_ai_user_conversation_simulation"
Property Value
"azure_ai_user_conversation_simulation"