Queue Dataset Goldens
(v2)POST
Adds goldens to the dataset as unfinalized goldens, for review on the platform before they are used in evaluations.
curl -X POST "https://api.confident-ai.com/v2/datasets/{datasetId}/queue" \
-H "CONFIDENT_API_KEY: <PROJECT-API-KEY>" \
-H "Content-Type: application/json" \
-d '{
"goldens": [
{
"input": "What is the capital of France?",
"actualOutput": "The capital of France is Paris.",
"expectedOutput": "Paris.",
"context": [
"Paris is the capital of France."
],
"retrievalContext": [
"Paris is the capital and largest city of France."
],
"toolsCalled": [
{
"name": "get_landmark_info",
"type": "FUNCTION",
"description": "This tool gives information about a mountain.",
"inputParameters": {
"mountain": "Everest"
},
"output": "8,848 metres",
"reasoning": "The user asked for the height of a mountain."
}
],
"expectedTools": [
{
"name": "get_landmark_info",
"type": "FUNCTION",
"description": "This tool gives information about a mountain.",
"inputParameters": {
"mountain": "Everest"
},
"output": "8,848 metres",
"reasoning": "The user asked for the height of a mountain."
}
],
"tokenCost": 0.002,
"inputTokenCount": 12,
"outputTokenCount": 3,
"additionalMetadata": {
"source": "faq"
},
"comments": "Reviewed by the support team.",
"sourceFile": "capitals.csv",
"sourceFiles": [
"capitals.csv"
],
"finalized": true,
"customColumnKeyValues": {
"difficulty": "easy"
},
"imagesMapping": {
"map": {
"url": "https://example.com/paris.png",
"local": false
}
},
"tags": [
"geography"
]
}
]
}'{
"success": true,
"data": {
"id": "<DATASET-ID>"
},
"link": "https://app.confident-ai.com/project/<PROJECT-ID>/datasets/<DATASET-ID>",
"deprecated": false
}Headers
CONFIDENT_API_KEYstringRequiredThe API key of your Confident AI project.
Path parameters
datasetIdstringRequiredThe unique id of the dataset.
Request body
goldenslist of object | objectRequiredThe goldens to queue for review. Every golden in one request must be of the same kind and match the dataset's
multiTurn. They are stored unfinalized, whatever each golden's ownfinalizedsays.Show 2 variantsHide 2 variants
Single-Turn Golden RequestobjectA single-turn golden to write: one input to your LLM application and the outputs expected of it.
Show 18 propertiesHide 18 properties
inputstringRequiredThis is the input to your LLM application.
actualOutputstring | nullThis is the actual output of your LLM application.
expectedOutputstring | nullThis is the expected output of your LLM application, which is the ideal actual output.
contextarray | nullThis is the ideal retrieval context of your LLM application.
retrievalContextarray | nullThis is the retrieval context of your LLM application.
toolsCalledarray | nullThis is the tools called by your LLM application.
Show 6 propertiesHide 6 properties
namestringRequiredThis is the name of the tool.
typeenumThe type of the tool call, either a function or an MCP tool.
Show 2 enum valuesHide 2 enum values
FUNCTIONMCP
descriptionstringThis is the description of the tool.
inputParametersobject | nullThis is the input parameters that are passed to the tool.
outputanyThis is the output of the tool.
reasoningstringThis is the reasoning your LLM provided for the tool call.
expectedToolsarray | nullThis is the expected tools to be called by the LLM application.
Show 6 propertiesHide 6 properties
namestringRequiredThis is the name of the tool.
typeenumThe type of the tool call, either a function or an MCP tool.
Show 2 enum valuesHide 2 enum values
FUNCTIONMCP
descriptionstringThis is the description of the tool.
inputParametersobject | nullThis is the input parameters that are passed to the tool.
outputanyThis is the output of the tool.
reasoningstringThis is the reasoning your LLM provided for the tool call.
tokenCostnumber | nullThis is the cost of the tokens used to produce the actual output.
inputTokenCountinteger | nullThis is the number of input tokens passed to the LLM model.
outputTokenCountinteger | nullThis is the number of output tokens generated by the LLM model.
additionalMetadataobject | nullAdditional metadata to associate with the golden.
commentsstring | nullComments to associate with the golden.
sourceFilestring | nullThe source file the golden was retrieved from. Like
tagsandcustomColumnKeyValues, this is left unchanged when the request omits it; sendnullto clear it.sourceFileslist of stringsThe source files the golden was retrieved from. Like
tagsandcustomColumnKeyValues, these are left unchanged when the request omits them; send an empty array to clear them.finalizedbooleanWhether the golden is ready to use in evaluations. When pushing or queueing a list of goldens the request decides this for every golden and this field is ignored.
customColumnKeyValuesobjectCustom dataset column values keyed by column name. A column that does not exist in the dataset yet is created.
imagesMappingobjectThe media this golden refers to, keyed by the id inside each placeholder. Put
[DEEPEVAL:IMAGE:<id>]or[DEEPEVAL:PDF:<id>]in a text field where the media belongs, and the platform substitutes the entry with a matching key.tagslist of stringsTags to associate with the golden, which is useful for grouping and filtering goldens. A tag that does not exist in the dataset yet is created.
- OR
Multi-Turn Golden RequestobjectA multi-turn golden to write: the scenario of a conversation with your LLM application and, optionally, its turns.
Show 13 propertiesHide 13 properties
scenariostringRequiredThis is a description of the conversation context.
expectedOutcomestring | nullThis describes the expected outcome, or ideal conversation flow, of the conversation.
userDescriptionstring | nullThis is the description of the user in the conversation.
turnsarray | nullThis is the list of turns in the conversation.
Show 6 propertiesHide 6 properties
idstringThe id of a turn assigned by Confident AI.
roleenumRequiredThe role of the turn, either user or assistant.
Show 2 enum valuesHide 2 enum values
userassistant
contentstringRequiredThe message content of the turn.
userIdstringThe user ID associated with the turn.
retrievalContextarray | nullThe contexts retrieved to generate the LLM response for this turn.
toolsCalledarray | nullThe tools called to generate the LLM response for this turn.
Show 6 propertiesHide 6 properties
namestringRequiredThis is the name of the tool.
typeenumThe type of the tool call, either a function or an MCP tool.
Show 2 enum valuesHide 2 enum values
FUNCTIONMCP
descriptionstringThis is the description of the tool.
inputParametersobject | nullThis is the input parameters that are passed to the tool.
outputanyThis is the output of the tool.
reasoningstringThis is the reasoning your LLM provided for the tool call.
contextarray | nullThis is the context of the conversation.
additionalMetadataobject | nullAdditional metadata to associate with the golden.
commentsstring | nullComments to associate with the golden.
sourceFilestring | nullThe source file the golden was retrieved from. Like
tagsandcustomColumnKeyValues, this is left unchanged when the request omits it; sendnullto clear it.sourceFileslist of stringsThe source files the golden was retrieved from. Like
tagsandcustomColumnKeyValues, these are left unchanged when the request omits them; send an empty array to clear them.finalizedbooleanWhether the golden is ready to use in evaluations. When pushing or queueing a list of goldens the request decides this for every golden and this field is ignored.
customColumnKeyValuesobjectCustom dataset column values keyed by column name. A column that does not exist in the dataset yet is created.
imagesMappingobjectThe media this golden refers to, keyed by the id inside each placeholder. Put
[DEEPEVAL:IMAGE:<id>]or[DEEPEVAL:PDF:<id>]in a text field where the media belongs, and the platform substitutes the entry with a matching key.tagslist of stringsTags to associate with the golden, which is useful for grouping and filtering goldens. A tag that does not exist in the dataset yet is created.
Response
Queue Dataset Goldens succeeded.
successbooleanIndicates if the request was successful.
dataobjectShow 1 propertyHide 1 property
idstringThis is the unique id of the dataset.
linkstringThis is the URL of the resource on the Confident AI platform.
deprecatedbooleanIndicates if this endpoint is deprecated.