Types used by more than one operation in Agent traces and evaluations. Each type has its own section.
GoldenSet
GoldenSet is an object type in the Monte Carlo GraphQL API.
A named group of golden test cases plus its shared run configuration.
| Field | Type | Description |
|---|---|---|
uuid | UUID! | Public identifier of the set. |
name | String! | Display name of the set. |
agentName | String | Observability agent the set is scoped to; null only on legacy sets created before agent association was required. |
traceTableMcon | String | MCON of the scoped agent's trace table (the set's content-domain key); null only on legacy sets created before agent association was required. |
prodTargetPath | String | Baseline (prod) agent REST endpoint path. |
devTargetPath | String | Default test (dev) agent REST endpoint path. |
evalConfig | GenericScalar | Rubric config the baseline scores against: {"rules": [...]} where each rule sets exactly one of templateName (a catalog conversation-eval template) or custom.criteria (a non-empty, ≤1000-char rubric). At most 5 rules, at most one custom rule, no duplicate template. Rejected at generateGoldenBaseline if malformed. |
retentionDays | Int! | Activity-based sliding retention window, in days. |
testCaseCount | Int! | Number of test cases in the set. |
lastUsedAt | DateTime | Last activity timestamp driving the sliding TTL. |
expiresAt | DateTime | When the set expires if left inactive. |
createdTime | DateTime! | When the set was created. |
updatedTime | DateTime! | When the set was last updated. |
Used by 4 operations: createGoldenSet (mutation), updateGoldenSet (mutation), getGoldenSet (query), getGoldenSets (query).
GoldenTestCase
GoldenTestCase is an object type in the Monte Carlo GraphQL API.
One captured conversation turn, snapshotted as a durable test case.
| Field | Type | Description |
|---|---|---|
uuid | UUID! | Public identifier of the test case. |
userInput | String! | The captured target-turn question. |
priorTurns | [GoldenPriorTurn!]! | Preceding turns captured as fixed context (empty for a single-turn case). |
isMultiTurn | Boolean! | Whether the case carries preceding context turns. |
contextTurnCount | Int! | Number of preceding context turns. |
hasReference | Boolean! | Whether an optional reference answer is set. |
targetResponseCaptured | Boolean! | Whether the target turn's original response was captured. |
targetTurnIndex | Int! | Index of the captured turn in the source conversation. |
sourceConversationId | String | Loose link to the origin conversation (may age out). |
sourceTraceId | String | Loose link to the origin trace (may age out). |
sourceAgedOut | Boolean! | Best-effort estimate, based on time since capture, of whether the source conversation has aged out of the 30-day trace window. Because it is measured from capture time (not the original conversation time), it can under-report when a conversation was captured well after it occurred. The captured snapshot remains valid regardless. |
createdTime | DateTime! | When the turn was captured. |
Used by 2 operations: addConversationToGoldenSet (mutation), getGoldenTestCases (query).
GoldenTestResult
GoldenTestResult is an object type in the Monte Carlo GraphQL API.
One case's scored result within a test run.
| Field | Type | Description |
|---|---|---|
uuid | UUID! | Public identifier of the result. |
goldenTestCaseUuid | UUID | Source test case (null if the case was since deleted). |
status | GoldenRunResultStatus! | Per-case outcome. |
scoredResponse | String | The live dev-agent response that was judged. Withheld (null) from callers without access to the underlying raw customer data. |
scores | [GoldenEvalScore!]! | Per-rule scores with baseline comparison (empty unless SCORED). |
verdict | GoldenVerdict | Case-level comparison verdict (null if no rule was comparable). |
error | String | Failure detail when the case errored or partially scored. Withheld (null) from callers without access to the underlying raw customer data, since it can echo the live dev-agent response. |
toolUseCount | Int | Number of tool calls the agent made on this case. Null if not captured. |
tokenUsage | GoldenTokenUsage | Token consumption for this case's agent run, summed across all models used. Null when the run captured no usage data. |
Used by 2 operations: startGoldenTestRun (mutation), getGoldenTestRuns (query).
GoldenTestRun
GoldenTestRun is an object type in the Monte Carlo GraphQL API.
One run of a golden set's eval rules against a live/dev agent, vs the baseline.
| Field | Type | Description |
|---|---|---|
uuid | UUID! | Public identifier of the run. |
status | GoldenRunStatus! | Run lifecycle/outcome. |
ruleSummary | [GoldenRunRuleSummary!]! | Per-rule aggregates (mean / pass-rate) over the run's scored cases. |
verdictSummary | GoldenVerdictSummary! | Per-run case-verdict counts. |
metricComparison | GoldenMetricComparison | Model / token / tool-call comparison vs the baseline. Null when either this run or the baseline captured no metrics (e.g. a baseline generated before metric collection, or a run with no usage data). |
comparedBaselineUuid | UUID | The baseline this run scored against (null if it was since regenerated). |
targetRef | String | The dev REST endpoint path this run hit. |
baselineStale | Boolean! | Whether the compared baseline was built on a different eval configuration than this run scored — verdicts then cover only the shared (intersecting) rules. |
results | [GoldenTestResult!]! | Per-case results. |
createdTime | DateTime! | When the run was created. |
updatedTime | DateTime! | When the run was last written. |
agentConfigSnapshot | GenericScalar | The Cortex agent's raw configuration captured at run time, for comparing setup across runs. Withheld (null) from callers without access to the underlying raw customer data; null when it could not be captured. |
Used by 2 operations: startGoldenTestRun (mutation), getGoldenTestRuns (query).
GoldenTokenUsage
GoldenTokenUsage is an object type in the Monte Carlo GraphQL API.
Token counts for one case's agent run, summed across every model it used.
| Field | Type | Description |
|---|---|---|
total | Int! | Input + output tokens across all models. |
input | Int! | Total input (prompt) tokens across all models. |
output | Int! | Total output (completion) tokens across all models. |
Used by 4 operations: generateGoldenBaseline (mutation), startGoldenTestRun (mutation), getGoldenBaseline (query), getGoldenTestRuns (query).
GoldenVerdict
GoldenVerdict is an enum type in the Monte Carlo GraphQL API.
A test run's comparison outcome against the baseline (per rule or per case).
REGRESSED: worse than the baseline. HELD: within tolerance. IMPROVED: better.
| Value | Description |
|---|---|
REGRESSED | |
HELD | |
IMPROVED |
Used by 4 operations: generateGoldenBaseline (mutation), startGoldenTestRun (mutation), getGoldenBaseline (query), getGoldenTestRuns (query).
GoldenVerdictSummary
GoldenVerdictSummary is an object type in the Monte Carlo GraphQL API.
Per-run counts of case verdicts (cases with no comparable rule are excluded).
| Field | Type | Description |
|---|---|---|
regressed | Int! | Cases that regressed vs the baseline. |
held | Int! | Cases that held within tolerance. |
improved | Int! | Cases that improved vs the baseline. |
Used by 2 operations: startGoldenTestRun (mutation), getGoldenTestRuns (query).
HasFeedbackCommentValue
HasFeedbackCommentValue is an enum type in the Monte Carlo GraphQL API.
Whether a trace's newest end-user feedback carries a comment.
A trace with no feedback counts as NO_COMMENT.
| Value | Description |
|---|---|
HAS_COMMENT | |
NO_COMMENT |
Used by 9 operations: getConversationOverview (query), getConversationTimeSeries (query), getConversations (query), getToolCallOverview (query), getToolCallTimeSeries (query), getTopTools (query), getTraceOverview (query), getTraceTimeSeries (query), getTraces (query).
LinearIntegrationResult
LinearIntegrationResult is an object type in the Monte Carlo GraphQL API.
The account's configured Linear integration.
| Field | Type | Description |
|---|---|---|
uuid | UUID! | Integration external ID. |
webhookUrl | String! | Externally-facing URL to register as a Linear webhook. After registering it in Linear, supply the signing secret Linear issues via setLinearWebhookSecret. |
webhookEnabled | Boolean! | Whether inbound webhook sync is active (true once the secret is set). |
defaultTeamId | String | Linear team ID new tickets default to. |
integrationName | String! | Human-readable name for this integration. To rename it, pass this integration's uuid to setIntegrationName with integration type 'linear'. |
Used by 3 operations: configureLinearIntegration (mutation), setLinearWebhookSecret (mutation), getLinearIntegration (query).
LlmPriceBookOverride
LlmPriceBookOverride is an object type in the Monte Carlo GraphQL API.
| Field | Type | Description |
|---|---|---|
uuid | UUID! | Stable identifier of the override row. |
warehouseUuid | UUID | Always null today: every override applies to all connections. |
computation | ComputationId! | Pricing method this rate belongs to. |
model | String! | Canonical model name the rate applies to. A raw model value is reduced to this first, so one row prices every spelling that reduces to it. |
inputRate | Float! | Rate for fresh input tokens, in credits per million tokens. |
outputRate | Float! | Rate for generated tokens, in credits per million tokens. |
cacheReadRate | Float! | Rate for input served from the prompt cache, in credits per million tokens. |
cacheWriteRate | Float! | Rate for input written into the prompt cache, in credits per million tokens. |
createdTime | DateTime! | When the override was created. |
updatedTime | DateTime! | When the override was last changed. A change re-prices every span still in retention, because rates are flat rather than effective-dated. Cost monitor points already recorded keep the rate they were computed at, so a rate change shows as a step in a cost monitor. |
Used by 2 operations: upsertLlmPriceBookOverride (mutation), getLlmPriceBookOverrides (query).
ObservedAgentSettings
ObservedAgentSettings is an object type in the Monte Carlo GraphQL API.
| Field | Type | Description |
|---|---|---|
traceTableMcon | String! | The agent's trace table. |
agentName | String! | The agent's name. |
splitBy | ObservedAgentSplitBy | How the agent splits. Null: not split. |
Used by 2 operations: updateObservedAgentSettings (mutation), getObservedAgentSettings (query).
ObservedAgentSplitBy
ObservedAgentSplitBy is an enum type in the Monte Carlo GraphQL API.
The span field that lists each of its values as its own agent. WORKFLOW: each trace belongs to the workflow agent named by its first non-empty workflow, in span start order.
| Value | Description |
|---|---|
WORKFLOW |
Used by 4 operations: updateObservedAgentSettings (mutation), getAgentDetails (query), getAgentMetadataV2 (query), getObservedAgentSettings (query).
OpenTelemetryDataStore
OpenTelemetryDataStore is an object type in the Monte Carlo GraphQL API.
Used by 2 operations: createOpenTelemetryDataStore (mutation), getOpenTelemetryDataStores (query).
PlatformAgentType
PlatformAgentType is an enum type in the Monte Carlo GraphQL API.
| Value | Description |
|---|---|
AGENTFORCE | |
SNOWFLAKE | |
DATABRICKS_MLFLOW_SDK | |
DATABRICKS_MLFLOW_KA | |
DATABRICKS_GENIE |
Used by 3 operations: createOrUpdatePlatformAgent (mutation), getAgentAutoSetupStates (query), getAvailablePlatformAgents (query).
ReinforcementLoopAgent
ReinforcementLoopAgent is an object type in the Monte Carlo GraphQL API.
The reinforcement loop's state for one agent. An agent with no saved settings reports the defaults: not paused, no error, no code repos.
| Field | Type | Description |
|---|---|---|
agentName | String! | |
traceTableMcon | String! | |
isPaused | Boolean! | The user's switch. While paused, the loop diagnoses nothing for any Issue space of the agent. Unpausing resumes where it stopped, or 7 days back after a longer pause. |
errorState | ReinforcementLoopAgentErrorState | Why the loop can't find issues for the agent; null when nothing is wrong. The loop clears it at its next check once the problem is fixed. |
warningState | ReinforcementLoopAgentWarningState | What the loop couldn't read, such as a skill or a semantic view. Issues are found without it. Null when nothing is wrong. Cleared at the next check once the grant is in place. |
isRunning | Boolean! | True when the agent is not paused and not CLUSTERING_BLOCKED. |
lastCheckedAt | DateTime | When the loop last checked it can read the agent's resources; null for agents it hasn't checked or whose platform has no check. |
requiresCodeRepo | Boolean! | True for a custom agent, one with Monte Carlo-hosted traces. Only custom agents take code repos. The loop diagnoses an agent with or without one. |
codeRepos | [ReinforcementLoopAgentCodeRepo!]! | Where the agent's code lives, on GitHub or Azure DevOps, in order; empty until set. Diagnosis reads every repo. |
githubCodeRepos | [ReinforcementLoopAgentGithubCodeRepo!]! | The agent's GitHub repos, in order; leaves out its Azure DevOps repos. Deprecated: Read codeRepos, which also holds Azure DevOps repos.. |
Used by 2 operations: updateReinforcementLoopAgent (mutation), getReinforcementLoopAgent (query).
ReinforcementLoopAgentCodeRepo
ReinforcementLoopAgentCodeRepo is an object type in the Monte Carlo GraphQL API.
One code location of an agent: a repo on GitHub or Azure DevOps, and optionally a directory and a branch.
| Field | Type | Description |
|---|---|---|
provider | ReinforcementLoopCodeHost! | |
installationUuid | UUID! | The GitHub App installation or Azure DevOps integration that reads the repo. |
organization | String! | The GitHub org or the Azure DevOps organization. |
project | String | The Azure DevOps project; null for a GitHub repo. |
repo | String! | Repository name, within the org or the Azure DevOps project. |
pathPrefix | String | Directory holding the agent; null when the whole repo is the agent. |
branch | String | Branch the reinforcement loop reads; null for the repo's default branch. |
Used by 2 operations: updateReinforcementLoopAgent (mutation), getReinforcementLoopAgent (query).
ReinforcementLoopAgentErrorKind
ReinforcementLoopAgentErrorKind is an enum type in the Monte Carlo GraphQL API.
MISSING_PERMISSIONS: Monte Carlo can't read resources the reinforcement loop reads to diagnose the agent. CLUSTERING_BLOCKED: Snowflake refused the queries that group the agent's conversations into issues.
| Value | Description |
|---|---|
MISSING_PERMISSIONS | |
CLUSTERING_BLOCKED |
Used by 2 operations: updateReinforcementLoopAgent (mutation), getReinforcementLoopAgent (query).
ReinforcementLoopAgentErrorState
ReinforcementLoopAgentErrorState is an object type in the Monte Carlo GraphQL API.
Why the reinforcement loop can't find issues for an agent.
| Field | Type | Description |
|---|---|---|
kind | ReinforcementLoopAgentErrorKind! | |
resources | [ReinforcementLoopAgentResourceKind!]! | The kinds of resource the loop couldn't read. |
objects | [ReinforcementLoopAgentObject!]! | The objects the loop couldn't read. |
message | String! | A sentence for the user. |
since | DateTime! | When the problem was first seen. |
detail | String | Snowflake's own message; null for MISSING_PERMISSIONS. |
grantSql | String | The statement that fixes it, with <monte_carlo_role> standing for Monte Carlo's role; null when the fix isn't a grant. |
Used by 2 operations: updateReinforcementLoopAgent (mutation), getReinforcementLoopAgent (query).
ReinforcementLoopAgentGithubCodeRepo
ReinforcementLoopAgentGithubCodeRepo is an object type in the Monte Carlo GraphQL API.
One GitHub code location of an agent: a repo, and optionally a directory and a branch.
| Field | Type | Description |
|---|---|---|
installationUuid | UUID! | The GitHub App installation that reads the repo. |
owner | String! | The installation's GitHub org. |
repo | String! | Repository name within the org. |
pathPrefix | String | Directory holding the agent; null when the whole repo is the agent. |
branch | String | Branch the reinforcement loop reads; null for the repo's default branch. |
Used by 2 operations: updateReinforcementLoopAgent (mutation), getReinforcementLoopAgent (query).
ReinforcementLoopAgentObject
ReinforcementLoopAgentObject is an object type in the Monte Carlo GraphQL API.
One object the reinforcement loop couldn't read.
| Field | Type | Description |
|---|---|---|
kind | ReinforcementLoopAgentResourceKind! | |
name | String! | A dotted name for a schema object, a stage path for a skill, or the space id for a Genie space. |
Used by 2 operations: updateReinforcementLoopAgent (mutation), getReinforcementLoopAgent (query).
ReinforcementLoopAgentResourceKind
ReinforcementLoopAgentResourceKind is an enum type in the Monte Carlo GraphQL API.
A kind of resource the reinforcement loop reads to diagnose an agent: its configuration (a Cortex agent's definition or a Genie space), its semantic models (e.g. Snowflake semantic views), its search services (e.g. Cortex search services), its skills (e.g. a Cortex agent skill's SKILL.md on a stage), its data sources (e.g. a Genie space's tables and metric views), its SQL functions (e.g. a Genie space's Unity Catalog functions), or its custom tools (e.g. the functions and procedures behind a Cortex agent's custom tools).
| Value | Description |
|---|---|
AGENT_CONFIGURATION | |
SEMANTIC_MODEL | |
SEARCH_SERVICE | |
SKILL | |
DATA_SOURCE | |
SQL_FUNCTION | |
CUSTOM_TOOL |
Used by 2 operations: updateReinforcementLoopAgent (mutation), getReinforcementLoopAgent (query).
ReinforcementLoopAgentWarningState
ReinforcementLoopAgentWarningState is an object type in the Monte Carlo GraphQL API.
What the reinforcement loop can't read about an agent. Issues are found without it.
| Field | Type | Description |
|---|---|---|
kind | ReinforcementLoopAgentErrorKind! | |
resources | [ReinforcementLoopAgentResourceKind!]! | The kinds of resource the loop couldn't read. |
objects | [ReinforcementLoopAgentObject!]! | The objects the loop couldn't read. |
message | String! | A sentence for the user. |
since | DateTime! | When the problem was first seen. |
detail | String | Snowflake's own message; null for MISSING_PERMISSIONS. |
grantSql | String | The statement that fixes it, with <monte_carlo_role> standing for Monte Carlo's role; null when the fix isn't a grant. |
Used by 2 operations: updateReinforcementLoopAgent (mutation), getReinforcementLoopAgent (query).
ReinforcementLoopAvailableCluster
ReinforcementLoopAvailableCluster is an object type in the Monte Carlo GraphQL API.
An Issue cluster the reinforcement loop can be pointed at.
| Field | Type | Description |
|---|---|---|
clusterKey | String! | Stable key; the value to put in selectedClusterKeys. |
name | String! | Display name. |
description | String! | One-line summary of what belongs in the cluster. |
kind | ReinforcementLoopClusterKind! | |
derivation | ClusteringDerivation! | How membership is computed: RULE evaluates criteria as SQL; LLM classifies each conversation against classificationCriteria. |
sourceMonitorUuid | UUID | For an EVAL_DERIVED cluster, the eval monitor it tracks. |
criteria | FilterGroup! | Membership criteria as a filter tree. Empty on an LLM cluster, whose definition is classificationCriteria. |
classificationCriteria | String! | What belongs in the cluster, as the classifier reads it; empty on a RULE cluster. |
Used by 2 operations: updateReinforcementLoopSelector (mutation), getReinforcementLoopSelectors (query).
ReinforcementLoopClusterKind
ReinforcementLoopClusterKind is an enum type in the Monte Carlo GraphQL API.
BUILT_IN: a default cluster the catalog seeds. EVAL_DERIVED: one eval monitor's low-scoring conversations (see evalScoreThreshold).
| Value | Description |
|---|---|
BUILT_IN | |
EVAL_DERIVED |
Used by 2 operations: updateReinforcementLoopSelector (mutation), getReinforcementLoopSelectors (query).
ReinforcementLoopCodeHost
ReinforcementLoopCodeHost is an enum type in the Monte Carlo GraphQL API.
Where a code repo lives.
| Value | Description |
|---|---|
GITHUB | |
AZURE_DEVOPS |
Used by 2 operations: updateReinforcementLoopAgent (mutation), getReinforcementLoopAgent (query).
ReinforcementLoopFeedbackPriorityReason
ReinforcementLoopFeedbackPriorityReason is an enum type in the Monte Carlo GraphQL API.
Why a person thinks an RL V2 issue has the wrong priority.
| Value | Description |
|---|---|
TOO_FEW_CONVERSATIONS | |
AGENT_RECOVERED | |
LOW_IMPACT_FAILURE | |
OTHER |
Used by 2 operations: submitReinforcementLoopIssueFeedback (mutation), getReinforcementLoopV2Issues (query).
ReinforcementLoopFeedbackRating
ReinforcementLoopFeedbackRating is an enum type in the Monte Carlo GraphQL API.
A rating of an RL V2 issue. UNDO withdraws the caller's current rating.
| Value | Description |
|---|---|
UP | |
DOWN | |
UNDO |
Used by 2 operations: submitReinforcementLoopIssueFeedback (mutation), getReinforcementLoopV2Issues (query).
ReinforcementLoopFeedbackReason
ReinforcementLoopFeedbackReason is an enum type in the Monte Carlo GraphQL API.
Why a person rated an RL V2 issue. CONVERSATION_DOESNT_BELONG and CONVERSATION_AGENT_RECOVERED rate one conversation; the rest rate the issue.
| Value | Description |
|---|---|
FIX_WORKED | |
NOT_A_REAL_PROBLEM | |
WRONG_ROOT_CAUSE | |
FIX_WOULDNT_WORK | |
DUPLICATE | |
WRONG_PRIORITY | |
HARD_TO_UNDERSTAND | |
SHOULD_RANK_HIGHER | |
OTHER | |
CONVERSATION_DOESNT_BELONG | |
CONVERSATION_AGENT_RECOVERED |
Used by 2 operations: submitReinforcementLoopIssueFeedback (mutation), getReinforcementLoopV2Issues (query).
ReinforcementLoopIssueDispositionReason
ReinforcementLoopIssueDispositionReason is an enum type in the Monte Carlo GraphQL API.
Why a user ignored an RL V2 issue.
| Value | Description |
|---|---|
INTENDED_BEHAVIOR | |
NOT_WORTH_FIXING | |
ALREADY_KNOWN_OR_FIXED | |
NOT_A_REAL_PROBLEM |
Used by 2 operations: ignoreReinforcementLoopIssue (mutation), getReinforcementLoopV2Issues (query).
ReinforcementLoopIssueStatus
ReinforcementLoopIssueStatus is an enum type in the Monte Carlo GraphQL API.
Where an RL V2 issue stands. FIXED once a fix is recorded and the issue hasn't come back. IN_PROGRESS while a ticket, a draft PR or a user's flag shows work on it. OPEN otherwise. Backtest issues are always OPEN.
| Value | Description |
|---|---|
OPEN | |
IN_PROGRESS | |
FIXED |
Used by 5 operations: linkReinforcementLoopIssueTicket (mutation), markReinforcementLoopIssueFixed (mutation), markReinforcementLoopIssueInProgress (mutation), undoReinforcementLoopIssueStatus (mutation), getReinforcementLoopV2Issues (query).
ReinforcementLoopSelector
ReinforcementLoopSelector is an object type in the Monte Carlo GraphQL API.
Which Issue clusters the reinforcement loop diagnoses for one Issue space of an agent. A space with no saved settings reports the defaults.
| Field | Type | Description |
|---|---|---|
issueSpaceUuid | UUID! | The Issue space; the id updateReinforcementLoopSelector takes. |
agentName | String! | |
traceTableMcon | String! | |
scopeWorkflow | String | The Issue space's workflow; null for the agent-wide space. Mirrors ConversationClusteringSpaceType.scopeWorkflow. |
selectedClusterKeys | [String!]! | Cluster keys whose conversations the loop diagnoses; empty selects nothing. Until a selection is saved, every current cluster of the space. |
selectsAllClusters | Boolean! | True when no selection is saved, so the loop diagnoses every current cluster, including clusters added later. selectAllClusters restores it. |
isEnabled | Boolean! | Whether the loop runs for this Issue space. |
evalScoreThreshold | Float! | Fallback bar for numeric evals whose monitor has no fixed alert threshold, as a score above 1 and up to 5. It moves to the same place on each judge's scale. Tuned on the clustering space, not here. |
availableClusters | [ReinforcementLoopAvailableCluster!]! | The Issue space's current clusters; any clusterKey here may be selected. |
Used by 2 operations: updateReinforcementLoopSelector (mutation), getReinforcementLoopSelectors (query).
TimeFilterInput
TimeFilterInput is an input object type in the Monte Carlo GraphQL API.
| Field | Type | Description |
|---|---|---|
timeField | FilterValueFieldInput! | |
lookbackInHrs | Int! |
Used by 2 operations: createOrUpdateAgentTrajectory (mutation), createOrUpdateAgentValidation (mutation).
TraceBucketSize
TraceBucketSize is an enum type in the Monte Carlo GraphQL API.
Time bucket sizes for time series aggregation.
| Value | Description |
|---|---|
MINUTE | |
HOUR | |
DAY | |
WEEK |
Used by 4 operations: getAgentCost (query), getConversationTimeSeries (query), getToolCallTimeSeries (query), getTraceTimeSeries (query).
TraceFeedbackRating
TraceFeedbackRating is an enum type in the Monte Carlo GraphQL API.
A trace's rating, from its newest end-user feedback.
UNRATED means the trace's newest feedback carries no rating.
NO_FEEDBACK means it has no feedback at all, which includes traces newer than
the last feedback collection. A trace is never both.
| Value | Description |
|---|---|
POSITIVE | |
NEGATIVE | |
UNRATED | |
NO_FEEDBACK |
Used by 9 operations: getConversationOverview (query), getConversationTimeSeries (query), getConversations (query), getToolCallOverview (query), getToolCallTimeSeries (query), getTopTools (query), getTraceOverview (query), getTraceTimeSeries (query), getTraces (query).
TraceFilterFieldName
TraceFilterFieldName is an enum type in the Monte Carlo GraphQL API.
Field names for trace filters.
| Value | Description |
|---|---|
MODEL | |
WORKFLOW | |
TASK | |
TOOL | |
DURATION | |
PROMPT_TOKENS | |
COMPLETION_TOKENS | |
TOTAL_TOKENS | |
COST | |
QUERY_COST | |
TOTAL_COST | |
STATUS | |
ROOT_STATUS | |
FEEDBACK_RATING | |
HAS_FEEDBACK_COMMENT |
Used by 2 operations: getTracesFilters (query), getTracesFiltersData (query).
TraceFiltersInput
TraceFiltersInput is an input object type in the Monte Carlo GraphQL API.
Optional filters to refine trace results within the time range.
| Field | Type | Description |
|---|---|---|
models | [String!] | Filter by model names (OR logic) |
workflows | [String] | Filter by workflow names (OR logic). A null element selects the no-workflow scope — traces whose spans carry no workflow label. |
tasks | [String!] | Filter by task names (OR logic) |
tools | [String!] | Filter to traces containing at least one tool-call span whose tool name matches (OR logic). Tool names are bare, without the Traceloop '.tool' suffix — matching the values surfaced by getTopTools. |
minDuration | Float | Minimum duration in seconds |
maxDuration | Float | Maximum duration in seconds |
minPromptTokens | Int | Minimum prompt tokens |
maxPromptTokens | Int | Maximum prompt tokens |
minCompletionTokens | Int | Minimum completion tokens |
maxCompletionTokens | Int | Maximum completion tokens |
minTotalTokens | Int | Minimum total tokens |
maxTotalTokens | Int | Maximum total tokens |
minCost | Float | Minimum token cost of a trace, in the agent's costUnit (credits, or the customer's currency when cost rates apply). A trace with no priceable span has an unknown token cost and matches no bound. One with some priced spans is bounded on those only. Resolved by scanning the agent's Snowflake event table, which only Cortex agents have, so it matches nothing for any other agent. |
maxCost | Float | Maximum token cost of a trace, in the same costUnit |
minQueryCost | Float | Minimum query cost of a trace: the warehouse compute cost attributed to its SQL queries, in the same costUnit. Attribution trails execution by about three hours and excludes warehouse idle time, so the figure is a lower bound. Queries not yet attributed read as zero, not as unknown. Matches nothing for any agent without a Snowflake event table, which is every agent except Cortex. |
maxQueryCost | Float | Maximum query cost of a trace, in the same costUnit |
minTotalCost | Float | Minimum total cost of a trace: token cost plus query cost, in the same costUnit. Unpriced tokens and queries still awaiting attribution contribute zero, so the total is a lower bound. Matches nothing for any agent without a Snowflake event table, which is every agent except Cortex. |
maxTotalCost | Float | Maximum total cost of a trace, in the same costUnit |
conversationId | String | Filter by exact conversation ID |
traceId | String | Filter by exact trace ID (hex-encoded) |
workflowAgent | String | Scope to one workflow agent: keep whole traces whose first non-empty workflow, by span start order within the time range, equals this value. Every span of a matching trace counts, including its root. Supported on ClickHouse trace tables only, and cannot be combined with workflows. Must not be blank, and at most 256 characters. |
statuses | [String!] | Filter by presence of any erroring span (any-span semantic — not root-span). Values: 'OK' or 'HAS_ERRORS' (OR logic). GraphInterrupt sentinels are excluded. Empty or omitted returns all. See also rootStatuses for root-span-level filtering. Note: this field's name mirrors ConversationFiltersInput.statuses but carries different semantics (any-span here, root-span there); the inversion is preserved for backwards compatibility (see AO-560 for the planned rename to hasErrors). |
rootStatuses | [TraceRootStatus!] | Filter by root-span status: 'OK' or 'ERROR' (OR logic). GraphInterrupt sentinels are excluded. Empty or omitted returns all. Composes with statuses — e.g. rootStatuses=[OK] AND statuses=[HAS_ERRORS] surfaces traces that completed cleanly but had retried/recovered span errors along the way. |
feedbackRatings | [TraceFeedbackRating!] | Filter by the rating of each trace's newest end-user feedback (OR logic). Supported for Snowflake Cortex and Databricks Genie agents, and code-based agents that send feedback to Agent Observability ClickHouse. On ClickHouse, the agent's feedback must be stored there. The tool overview, tool time series and top tools do not support this filter on ClickHouse. |
hasFeedbackComment | [HasFeedbackCommentValue!] | Filter by whether each trace's newest end-user feedback carries a comment (OR logic). Supported for Snowflake Cortex and Databricks Genie agents, and code-based agents that send feedback to Agent Observability ClickHouse. On ClickHouse, the agent's feedback must be stored there. The tool overview, tool time series and top tools do not support this filter on ClickHouse. |
searchQuery | String | Filter by custom span-attribute metadata. Syntax: key:value for exact match; -key:value to exclude; quote multi-word values (key:"two words"); space-separated clauses combine with AND. Bare keys (no dot) are looked up under the standard custom-metadata namespace; dotted keys are matched as-is. Only available on accounts whose trace data is served from ClickHouse. |
runUuid | UUID | Filter to the traces evaluated in a monitor run: pass an agent evaluation monitor run's jobExecutionUuid (as surfaced on monitor chart datapoints) to keep only traces that produced at least one scored row in that run. Combines (ANDs) with the other filters. Exact run membership is available only for AO-managed ClickHouse agent evaluation monitors. Runs of other monitor types are rejected, as are trace-aggregation agent evaluation runs (their scores carry no per-row trace linkage) and runs that evaluated more than 10,000 traces (rather than returning an incomplete list). Runs of conversation-scored monitors carry no trace linkage and return an empty page. |
Used by 8 operations: getConversationOverview (query), getConversationTimeSeries (query), getToolCallOverview (query), getToolCallTimeSeries (query), getTopTools (query), getTraceOverview (query), getTraceTimeSeries (query), getTraces (query).
TracePageInfo
TracePageInfo is an object type in the Monte Carlo GraphQL API.
PageInfo for trace pagination (Relay spec compliant).
| Field | Type | Description |
|---|---|---|
hasNextPage | Boolean! | Whether there are more results after this page |
hasPreviousPage | Boolean! | Whether there are more results before this page |
startCursor | String | Cursor of the first edge |
endCursor | String | Cursor of the last edge |
Used by 3 operations: getConversationThread (query), getConversations (query), getTraces (query).
TraceRootStatus
TraceRootStatus is an enum type in the Monte Carlo GraphQL API.
Status of a trace based on the root span's outcome (excluding LangGraph
control-flow sentinels like GraphInterrupt).
Trace-scope counterpart of ConversationStatus. Orthogonal to HasErrorsValue:
a trace with TraceRootStatus.OK can still have HasErrorsValue.HAS_ERRORS —
root succeeded but a child span errored or was retried (the AO-501 case).
| Value | Description |
|---|---|
OK | |
ERROR |
Used by 8 operations: getConversationOverview (query), getConversationTimeSeries (query), getToolCallOverview (query), getToolCallTimeSeries (query), getTopTools (query), getTraceOverview (query), getTraceTimeSeries (query), getTraces (query).
TraceSegmentField
TraceSegmentField is an enum type in the Monte Carlo GraphQL API.
Fields available for segmenting time series data.
Note: Span-level segmentation is intentionally not supported.
Workflows and tasks are already stored as aggregated arrays in agent_traces.
Model is also available for segmentation.
| Value | Description |
|---|---|
WORKFLOW | |
TASK | |
MODEL |
Used by 8 operations: getAgentSegments (query), getConversationOverview (query), getConversationTimeSeries (query), getToolCallOverview (query), getToolCallTimeSeries (query), getTopTools (query), getTraceOverview (query), getTraceTimeSeries (query).
TraceSegmentFilterInput
TraceSegmentFilterInput is an input object type in the Monte Carlo GraphQL API.
A single segment dimension filter: match traces whose field array overlaps values.
| Field | Type | Description |
|---|---|---|
field | TraceSegmentField! | Dimension to filter on (MODEL, WORKFLOW, TASK) |
values | [String!]! | Values to match (OR logic within dimension). Empty list means no filtering. |
Used by 7 operations: getConversationOverview (query), getConversationTimeSeries (query), getToolCallOverview (query), getToolCallTimeSeries (query), getTopTools (query), getTraceOverview (query), getTraceTimeSeries (query).
TraceSortDirection
TraceSortDirection is an enum type in the Monte Carlo GraphQL API.
Sort direction for traces.
| Value | Description |
|---|---|
ASC | |
DESC |
Used by 2 operations: getConversations (query), getTraces (query).
TraceTimeSeriesBucketType
TraceTimeSeriesBucketType is an object type in the Monte Carlo GraphQL API.
A single time bucket in a time series.
| Field | Type | Description |
|---|---|---|
timestamp | DateTime! | Start of the time bucket |
value | Float | Metric value for this bucket (null if no data or no measured invocation for latency) |
Used by 3 operations: getConversationTimeSeries (query), getToolCallTimeSeries (query), getTraceTimeSeries (query).
Source: The GraphQL API reference
This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.
