Related queries and mutations in Agent traces and evaluations. Each has its own section.
Queries
getAgentDatasetBuilderCandidates (query)
getAgentDatasetBuilderCandidates is a query in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
One dataset's conversations in rank order, with their scores and clusters. Holds no question or answer text. Conversations come from the last 30 days. A single-turn conversation is one with a single turn in that window.
Arguments
| Argument | Type | Description |
|---|---|---|
traceTableMcon | String! | |
agentName | String! | |
datasetType | AgentDatasetBuilderDatasetType! | |
workflow | String | Null for an agent without workflows. |
Returns
AgentDatasetBuilderCandidates!
Example
query GetAgentDatasetBuilderCandidates($traceTableMcon: String!, $agentName: String!, $datasetType: AgentDatasetBuilderDatasetType!) {
getAgentDatasetBuilderCandidates(traceTableMcon: $traceTableMcon, agentName: $agentName, datasetType: $datasetType) {
datasetType
workflow
windowStart
windowEnd
clustered
clusterContentWithheldReason
}
}Types used only by getAgentDatasetBuilderCandidates
getAgentDatasetBuilderCandidatesAgentDatasetBuilderCandidate
AgentDatasetBuilderCandidateObject type.
| Field | Type | Description |
|---|---|---|
conversationId | String! | |
askedAt | DateTime! | |
scores | [AgentDatasetBuilderScore!]! | The latest score for each counted eval. |
intentCluster | String | Null when unclustered or not shown. |
issueClusters | [String!]! | Issue clusters, for improvement candidates only. |
isPinned | Boolean! | |
mcUrl | String! | The conversation's page. |
AgentDatasetBuilderCandidates
AgentDatasetBuilderCandidatesObject type.
| Field | Type | Description |
|---|---|---|
datasetType | AgentDatasetBuilderDatasetType! | |
workflow | String | |
windowStart | DateTime! | |
windowEnd | DateTime! | |
settings | AgentDatasetBuilderSettings! | |
clustered | Boolean! | False when cluster content is withheld or there's no usable space. |
clusterContentWithheldReason | RawContentWithheldReason | Why clusters are hidden, or null when the user can see them. |
candidates | [AgentDatasetBuilderCandidate!]! | In rank order, pinned conversations first, at most the dataset size. |
AgentDatasetBuilderScore
AgentDatasetBuilderScoreObject type.
| Field | Type | Description |
|---|---|---|
monitorUuid | UUID! | |
evalName | String! | |
score | Float! | |
scaleMax | Float | |
passed | Boolean | Always null. Only number-scored evals count, and the floor and ceiling judge them. |
higherIsBetter | Boolean | Whether a higher score is better. |
reasoning | String | The judge's reasoning. Null without access to raw agent content. |
Related types
AgentDatasetBuilderDatasetType, AgentDatasetBuilderSettings, DateTime, RawContentWithheldReason, UUID
getAgentDatasetBuilderExport (query)
getAgentDatasetBuilderExport is a query in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
An export's status. Poll until COMPLETED, FAILED or STALE. Only the user who started it can read it.
Arguments
| Argument | Type | Description |
|---|---|---|
uuid | UUID! |
Returns
Example
query GetAgentDatasetBuilderExport($uuid: UUID!) {
getAgentDatasetBuilderExport(uuid: $uuid) {
uuid
status
datasetType
workflow
conversationCount
error
createdTime
}
}Related types
AgentDatasetBuilderExport, UUID
getAgentDatasetBuilderExportFile (query)
getAgentDatasetBuilderExportFile is a query in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
A completed export's file in the chosen format. It reads the saved query result, or runs the query again when the result is gone, so it can answer RUNNING: ask again, one request at a time. Content can differ from the first run, and conversations that no longer come back are listed as missing. Only the user who started the export can download it.
Arguments
| Argument | Type | Description |
|---|---|---|
uuid | UUID! | |
format | AgentDatasetBuilderFormat! |
Returns
AgentDatasetBuilderExportFile!
Example
query GetAgentDatasetBuilderExportFile($uuid: UUID!, $format: AgentDatasetBuilderFormat!) {
getAgentDatasetBuilderExportFile(uuid: $uuid, format: $format) {
status
error
workflow
fileName
mimeType
content
exampleCount
skippedConversationIds
truncatedConversationIds
leftOutConversationIds
missingConversationIds
}
}Types used only by getAgentDatasetBuilderExportFile
getAgentDatasetBuilderExportFileAgentDatasetBuilderExportFile
AgentDatasetBuilderExportFileObject type.
| Field | Type | Description |
|---|---|---|
status | AgentDatasetBuilderContentStatus! | |
error | String | Why the file is UNAVAILABLE or FAILED. |
workflow | String | Null for an agent without workflows. |
fileName | String | Set when COMPLETED. |
mimeType | String | Set when COMPLETED. |
content | String | The whole file. Set when COMPLETED. |
exampleCount | Int | Examples in the file. Set when COMPLETED. |
skippedConversationIds | [String!]! | Left out because a newer conversation asked the same question. |
truncatedConversationIds | [String!]! | Examples with a field cut to its size limit. |
leftOutConversationIds | [String!]! | Examples the file leaves out: the chosen format can't hold them, or, in a golden file, their reply was not recorded. |
missingConversationIds | [String!]! | Exported conversations whose content or metadata no longer came back, such as conversations past the 30-day retention. |
Related types
AgentDatasetBuilderContentStatus, AgentDatasetBuilderFormat, UUID
getAgentDatasetBuilderPreview (query)
getAgentDatasetBuilderPreview is a query in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
One conversation as a dataset example in the chosen format. Answers RUNNING until the warehouse read finishes, so ask again with the same attemptId. Needs access to the agent's raw content.
Arguments
| Argument | Type | Description |
|---|---|---|
traceTableMcon | String! | |
agentName | String! | |
datasetType | AgentDatasetBuilderDatasetType! | |
conversationId | String! | |
format | AgentDatasetBuilderFormat! | |
attemptId | UUID! | One id per preview opened. Keep it while polling and when the format changes. A new id reads the conversation again. |
Returns
AgentDatasetBuilderPreview!
Example
query GetAgentDatasetBuilderPreview($traceTableMcon: String!, $agentName: String!, $datasetType: AgentDatasetBuilderDatasetType!, $conversationId: String!, $format: AgentDatasetBuilderFormat!, $attemptId: UUID!) {
getAgentDatasetBuilderPreview(traceTableMcon: $traceTableMcon, agentName: $agentName, datasetType: $datasetType, conversationId: $conversationId, format: $format, attemptId: $attemptId) {
status
error
rendered
guidance
truncatedFields
}
}Types used only by getAgentDatasetBuilderPreview
getAgentDatasetBuilderPreviewAgentDatasetBuilderField
AgentDatasetBuilderFieldObject type.
| Field | Type | Description |
|---|---|---|
name | String! | The platform's own field name. |
value | String | Null when the format leaves it for the reviewer. |
AgentDatasetBuilderPreview
AgentDatasetBuilderPreviewObject type.
| Field | Type | Description |
|---|---|---|
status | AgentDatasetBuilderContentStatus! | |
error | String | Why the preview is UNAVAILABLE or FAILED. |
scoredFields | [AgentDatasetBuilderField!] | What the platform scores against. Set when COMPLETED. |
referenceFields | [AgentDatasetBuilderField!] | What the reviewer sees and the platform ignores. Set when COMPLETED. |
rendered | String | The example exactly as it appears in the file. |
guidance | [String!] | What to check. |
truncatedFields | [String!] | Fields cut to their size limit, such as answer or tool_calls[3].output. |
Related types
AgentDatasetBuilderContentStatus, AgentDatasetBuilderDatasetType, AgentDatasetBuilderFormat, UUID
getAgentDatasetBuilderSettings (query)
getAgentDatasetBuilderSettings is a query in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
An agent's dataset builder settings, with every conversation eval monitor on the agent and whether it counts. Defaults when nothing was saved.
Arguments
| Argument | Type | Description |
|---|---|---|
traceTableMcon | String! | |
agentName | String! |
Returns
Example
query GetAgentDatasetBuilderSettings($traceTableMcon: String!, $agentName: String!) {
getAgentDatasetBuilderSettings(traceTableMcon: $traceTableMcon, agentName: $agentName) {
traceTableMcon
agentName
floor
ceiling
goldenSize
improvementSize
}
}Related types
getAgentDatasetBuilderSummary (query)
getAgentDatasetBuilderSummary is a query in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Counts for each of an agent's golden and improvement datasets, one pair per workflow, or why it has none. Conversations come from the last 30 days. A single-turn conversation is one with a single turn in that window.
Arguments
| Argument | Type | Description |
|---|---|---|
traceTableMcon | String! | |
agentName | String! |
Returns
AgentDatasetBuilderSummary!
Example
query GetAgentDatasetBuilderSummary($traceTableMcon: String!, $agentName: String!) {
getAgentDatasetBuilderSummary(traceTableMcon: $traceTableMcon, agentName: $agentName) {
unavailableReason
clusterContentWithheldReason
windowStart
windowEnd
}
}Types used only by getAgentDatasetBuilderSummary
getAgentDatasetBuilderSummaryAgentDatasetBuilderDatasetSummary
AgentDatasetBuilderDatasetSummaryObject type.
| Field | Type | Description |
|---|---|---|
datasetType | AgentDatasetBuilderDatasetType! | |
candidateCount | Int! | Conversations in the dataset, at most its size. The file can hold fewer, because the export leaves out duplicate questions. |
clustered | Boolean! | Whether the dataset is spread across clusters. False when cluster content is withheld or the agent has no usable cluster space; the dataset is then in score order. |
intentClustersCovered | Int | Null when the dataset isn't clustered. |
issueClustersCovered | Int | 0 for golden. Null when the dataset isn't clustered, or has no usable issue space. |
pinnedCount | Int! | |
pinsNotIncluded | Int! | Live pins left out because the dataset was full. |
AgentDatasetBuilderSummary
AgentDatasetBuilderSummaryObject type.
| Field | Type | Description |
|---|---|---|
unavailableReason | AgentDatasetBuilderUnavailableReason | Null when datasets are available, even when they are empty. |
clusterContentWithheldReason | RawContentWithheldReason | Why clusters are hidden, or null when the user can see them. |
windowStart | DateTime! | |
windowEnd | DateTime! | |
workflows | [AgentDatasetBuilderWorkflowDatasets!]! | Each workflow with candidates, most candidates first. An agent without workflows has one entry with a null workflow. Empty when datasets are unavailable. |
AgentDatasetBuilderUnavailableReason
AgentDatasetBuilderUnavailableReasonEnum type. Why an agent has no datasets. NO_CONVERSATION_EVALS: no conversation eval monitor counts. UNSUPPORTED_AGENT: datasets aren't built for this kind of agent.
| Value | Description |
|---|---|
NO_CONVERSATION_EVALS | |
UNSUPPORTED_AGENT |
AgentDatasetBuilderWorkflowDatasets
AgentDatasetBuilderWorkflowDatasetsObject type.
| Field | Type | Description |
|---|---|---|
workflow | String | Null when the agent has no workflows. |
golden | AgentDatasetBuilderDatasetSummary! | |
improvement | AgentDatasetBuilderDatasetSummary! |
Related types
AgentDatasetBuilderDatasetType, DateTime, RawContentWithheldReason
Mutations
pinAgentDatasetBuilderConversation (mutation)
pinAgentDatasetBuilderConversation is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Pin a conversation into the golden or improvement dataset of its workflow, or move its pin to the other one. Only single-turn conversations from the last 30 days can be pinned.
Arguments
| Argument | Type | Description |
|---|---|---|
traceTableMcon | String! | |
agentName | String! | |
conversationId | String! | |
datasetType | AgentDatasetBuilderDatasetType! |
Returns
Example
mutation PinAgentDatasetBuilderConversation($traceTableMcon: String!, $agentName: String!, $conversationId: String!, $datasetType: AgentDatasetBuilderDatasetType!) {
pinAgentDatasetBuilderConversation(traceTableMcon: $traceTableMcon, agentName: $agentName, conversationId: $conversationId, datasetType: $datasetType) {
conversationId
datasetType
pinnedBy
pinnedAt
expiresAt
}
}Related types
AgentDatasetBuilderDatasetType, AgentDatasetBuilderPin
startAgentDatasetBuilderExport (mutation)
startAgentDatasetBuilderExport is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Start exporting a dataset's checked conversations. Poll getAgentDatasetBuilderExport, then download with getAgentDatasetBuilderExportFile. Needs access to the agent's raw content.
Arguments
| Argument | Type | Description |
|---|---|---|
agentName | String! | |
conversationIds | [String!]! | 1 to 50 single-turn conversations from the last 30 days, all in the workflow. |
datasetType | AgentDatasetBuilderDatasetType! | |
traceTableMcon | String! | |
workflow | String | Null for an agent without workflows. |
Returns
StartAgentDatasetBuilderExport
Example
mutation StartAgentDatasetBuilderExport($agentName: String!, $conversationIds: [String!]!, $datasetType: AgentDatasetBuilderDatasetType!, $traceTableMcon: String!) {
startAgentDatasetBuilderExport(agentName: $agentName, conversationIds: $conversationIds, datasetType: $datasetType, traceTableMcon: $traceTableMcon) {
export {
uuid
status
datasetType
workflow
conversationCount
error
createdTime
}
}
}Types used only by startAgentDatasetBuilderExport
startAgentDatasetBuilderExportStartAgentDatasetBuilderExport
StartAgentDatasetBuilderExportObject type.
| Field | Type | Description |
|---|---|---|
export | AgentDatasetBuilderExport! |
Related types
AgentDatasetBuilderDatasetType, AgentDatasetBuilderExport
unpinAgentDatasetBuilderConversation (mutation)
unpinAgentDatasetBuilderConversation is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Remove a conversation's pin. Always true, also when it had none.
Arguments
| Argument | Type | Description |
|---|---|---|
traceTableMcon | String! | |
agentName | String! | |
conversationId | String! |
Returns
Boolean!
Example
mutation UnpinAgentDatasetBuilderConversation($traceTableMcon: String!, $agentName: String!, $conversationId: String!) {
unpinAgentDatasetBuilderConversation(traceTableMcon: $traceTableMcon, agentName: $agentName, conversationId: $conversationId)
}updateAgentDatasetBuilderSettings (mutation)
updateAgentDatasetBuilderSettings is a mutation in the Monte Carlo GraphQL API, in Agent traces and evaluations. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.
Status: Experimental
Save an agent's dataset builder settings.
Arguments
| Argument | Type | Description |
|---|---|---|
input | UpdateAgentDatasetBuilderSettingsInput! |
Returns
Example
mutation UpdateAgentDatasetBuilderSettings($input: UpdateAgentDatasetBuilderSettingsInput!) {
updateAgentDatasetBuilderSettings(input: $input) {
traceTableMcon
agentName
floor
ceiling
goldenSize
improvementSize
}
}Types used only by updateAgentDatasetBuilderSettings
updateAgentDatasetBuilderSettingsUpdateAgentDatasetBuilderSettingsInput
UpdateAgentDatasetBuilderSettingsInputInput object type.
| Field | Type | Description |
|---|---|---|
traceTableMcon | String! | |
agentName | String! | |
deselectedMonitorUuids | [UUID!]! | The agent's conversation eval monitors whose scores don't count. |
floor | Int! | 1 to 5, above the ceiling. |
ceiling | Int! | 1 to 5, below the floor. |
goldenSize | Int! | 1 to 50. |
improvementSize | Int! | 1 to 50. |
Related types
AgentDatasetBuilderSettings, UUID
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
