curl --request POST \
--url https://api.avidoai.com/v0/experiments/{id}/variants \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-application-id: <api-key>' \
--data '
{
"configPatch": {
"llm": {
"temperature": 0.5
}
},
"title": "Variant A",
"description": "Adjust temperature and top_p",
"parentId": "123e4567-e89b-12d3-a456-426614174000"
}
'{
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"experimentId": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2024-01-05T12:34:56.789Z",
"modifiedAt": "2024-01-05T12:34:56.789Z",
"title": "Credit Card Block",
"description": "Wants to block their credit card",
"status": "DRAFT",
"configPatch": {
"llm": {
"temperature": 0.5
}
},
"config": {
"llm": {
"temperature": 0.5
}
},
"parentId": "123e4567-e89b-12d3-a456-426614174000",
"result": {
"passed": 1,
"failed": 1,
"total": 1,
"passRate": 50,
"evals": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "NATURALNESS",
"passed": 1,
"failed": 1,
"total": 1,
"passRate": 50
}
]
}
}
}Creates a new variant for the specified experiment.
curl --request POST \
--url https://api.avidoai.com/v0/experiments/{id}/variants \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-application-id: <api-key>' \
--data '
{
"configPatch": {
"llm": {
"temperature": 0.5
}
},
"title": "Variant A",
"description": "Adjust temperature and top_p",
"parentId": "123e4567-e89b-12d3-a456-426614174000"
}
'{
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"experimentId": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2024-01-05T12:34:56.789Z",
"modifiedAt": "2024-01-05T12:34:56.789Z",
"title": "Credit Card Block",
"description": "Wants to block their credit card",
"status": "DRAFT",
"configPatch": {
"llm": {
"temperature": 0.5
}
},
"config": {
"llm": {
"temperature": 0.5
}
},
"parentId": "123e4567-e89b-12d3-a456-426614174000",
"result": {
"passed": 1,
"failed": 1,
"total": 1,
"passRate": 50,
"evals": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "NATURALNESS",
"passed": 1,
"failed": 1,
"total": 1,
"passRate": 50
}
]
}
}
}Your unique Avido API key
Your unique Avido Application ID
The unique identifier of the experiment
"123e4567-e89b-12d3-a456-426614174000"
Request body for creating a new experiment variant
The title of the variant
"Variant A"
The variant description
"Adjust temperature and top_p"
Parent variant ID for inherited variants (non-baseline variants)
"123e4567-e89b-12d3-a456-426614174000"
Successfully created experiment variant
Response containing a single experiment variant
Show child attributes
The unique identifier of the variant
"123e4567-e89b-12d3-a456-426614174000"
The unique identifier of the experiment
"123e4567-e89b-12d3-a456-426614174000"
When the variant was created
"2024-01-05T12:34:56.789Z"
When the variant was last modified
"2024-01-05T12:34:56.789Z"
The title of the experiment
"Credit Card Block"
The experiment description
"Wants to block their credit card"
DRAFT, RUNNING, COMPLETED, FAILED, REJECTED Parent variant ID for inherited variants (non-baseline variants)
"123e4567-e89b-12d3-a456-426614174000"
Show child attributes
x >= 0x >= 0x >= 00 <= x <= 100Show child attributes
The type of evaluation
NATURALNESS, STYLE, RECALL, CUSTOM, FACT, OUTPUT_MATCH "NATURALNESS"
x >= 0x >= 0x >= 00 <= x <= 100