ExperimentConfig

Updated at:

Parameter

Type

Description

Example

object

The configuration of a single experiment group, including the experiment label, model, provider, endpoint connector, and prompt template.

{"label":"A","name":"baseline","modelName":"qwen-max","modelProvider":"dashscope"}

endpointConnectorId

string

The endpoint connector ID, which is required in user or agent mode.

label

string

The experiment label (A, B, C, D, or E).

A

modelName

string

The model name, which can be set to agent for agent scenarios.

qwen-max

modelParameters

ModelParameters

The model parameters.

modelProvider

string

The model provider. Valid values: dashscope (default), user, and agent.

dashscope

name

string

The experiment name.

baseline

promptTemplate

array

The prompt message template, which supports {{variable name}} placeholders.

[{"role":"user","content":"Please answer: {{question}}"}]

PromptTemplateItem

The individual prompt message template.

{"role":"user","content":"Please answer: {{question}}"}

requestBodyTemplate

string

The agent request body template, which is required in agent mode and supports {{variable name}} placeholders.

{"input":"{{question}}"}

requestHeaderTemplate

string

The agent request header template, which is optional in agent mode and supports {{variable name}} placeholders.

{"Content-Type: application/json" }

requestMethod

string

The agent request method. Valid values: POST (default) and GET.

POST