Agent traces and evaluations: types GoldenSet to TraceTimeSeriesBucketType (GraphQL)

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.

FieldTypeDescription
uuidUUID!Public identifier of the set.
nameString!Display name of the set.
agentNameStringObservability agent the set is scoped to; null only on legacy sets created before agent association was required.
traceTableMconStringMCON of the scoped agent's trace table (the set's content-domain key); null only on legacy sets created before agent association was required.
prodTargetPathStringBaseline (prod) agent REST endpoint path.
devTargetPathStringDefault test (dev) agent REST endpoint path.
evalConfigGenericScalarRubric 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.
retentionDaysInt!Activity-based sliding retention window, in days.
testCaseCountInt!Number of test cases in the set.
lastUsedAtDateTimeLast activity timestamp driving the sliding TTL.
expiresAtDateTimeWhen the set expires if left inactive.
createdTimeDateTime!When the set was created.
updatedTimeDateTime!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.

FieldTypeDescription
uuidUUID!Public identifier of the test case.
userInputString!The captured target-turn question.
priorTurns[GoldenPriorTurn!]!Preceding turns captured as fixed context (empty for a single-turn case).
isMultiTurnBoolean!Whether the case carries preceding context turns.
contextTurnCountInt!Number of preceding context turns.
hasReferenceBoolean!Whether an optional reference answer is set.
targetResponseCapturedBoolean!Whether the target turn's original response was captured.
targetTurnIndexInt!Index of the captured turn in the source conversation.
sourceConversationIdStringLoose link to the origin conversation (may age out).
sourceTraceIdStringLoose link to the origin trace (may age out).
sourceAgedOutBoolean!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.
createdTimeDateTime!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.

FieldTypeDescription
uuidUUID!Public identifier of the result.
goldenTestCaseUuidUUIDSource test case (null if the case was since deleted).
statusGoldenRunResultStatus!Per-case outcome.
scoredResponseStringThe 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).
verdictGoldenVerdictCase-level comparison verdict (null if no rule was comparable).
errorStringFailure 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.
toolUseCountIntNumber of tool calls the agent made on this case. Null if not captured.
tokenUsageGoldenTokenUsageToken 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.

FieldTypeDescription
uuidUUID!Public identifier of the run.
statusGoldenRunStatus!Run lifecycle/outcome.
ruleSummary[GoldenRunRuleSummary!]!Per-rule aggregates (mean / pass-rate) over the run's scored cases.
verdictSummaryGoldenVerdictSummary!Per-run case-verdict counts.
metricComparisonGoldenMetricComparisonModel / 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).
comparedBaselineUuidUUIDThe baseline this run scored against (null if it was since regenerated).
targetRefStringThe dev REST endpoint path this run hit.
baselineStaleBoolean!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.
createdTimeDateTime!When the run was created.
updatedTimeDateTime!When the run was last written.
agentConfigSnapshotGenericScalarThe 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.

FieldTypeDescription
totalInt!Input + output tokens across all models.
inputInt!Total input (prompt) tokens across all models.
outputInt!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.

ValueDescription
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).

FieldTypeDescription
regressedInt!Cases that regressed vs the baseline.
heldInt!Cases that held within tolerance.
improvedInt!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.

ValueDescription
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.

FieldTypeDescription
uuidUUID!Integration external ID.
webhookUrlString!Externally-facing URL to register as a Linear webhook. After registering it in Linear, supply the signing secret Linear issues via setLinearWebhookSecret.
webhookEnabledBoolean!Whether inbound webhook sync is active (true once the secret is set).
defaultTeamIdStringLinear team ID new tickets default to.
integrationNameString!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.

FieldTypeDescription
uuidUUID!Stable identifier of the override row.
warehouseUuidUUIDAlways null today: every override applies to all connections.
computationComputationId!Pricing method this rate belongs to.
modelString!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.
inputRateFloat!Rate for fresh input tokens, in credits per million tokens.
outputRateFloat!Rate for generated tokens, in credits per million tokens.
cacheReadRateFloat!Rate for input served from the prompt cache, in credits per million tokens.
cacheWriteRateFloat!Rate for input written into the prompt cache, in credits per million tokens.
createdTimeDateTime!When the override was created.
updatedTimeDateTime!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.

FieldTypeDescription
traceTableMconString!The agent's trace table.
agentNameString!The agent's name.
splitByObservedAgentSplitByHow 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.

ValueDescription
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.

FieldTypeDescription
uuidUUID!Unique UUID of the data store
nameString!Name of the data store
storageTypeString!Type of storage (e.g., S3)
storageIdentifierString!Storage identifier (e.g., bucket name)
authTypeString!Authentication type
createdTimeDateTime!When the data store was created

Used by 2 operations: createOpenTelemetryDataStore (mutation), getOpenTelemetryDataStores (query).

PlatformAgentType

PlatformAgentType is an enum type in the Monte Carlo GraphQL API.

ValueDescription
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.

FieldTypeDescription
agentNameString!
traceTableMconString!
isPausedBoolean!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.
errorStateReinforcementLoopAgentErrorStateWhy 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.
warningStateReinforcementLoopAgentWarningStateWhat 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.
isRunningBoolean!True when the agent is not paused and not CLUSTERING_BLOCKED.
lastCheckedAtDateTimeWhen the loop last checked it can read the agent's resources; null for agents it hasn't checked or whose platform has no check.
requiresCodeRepoBoolean!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.

FieldTypeDescription
providerReinforcementLoopCodeHost!
installationUuidUUID!The GitHub App installation or Azure DevOps integration that reads the repo.
organizationString!The GitHub org or the Azure DevOps organization.
projectStringThe Azure DevOps project; null for a GitHub repo.
repoString!Repository name, within the org or the Azure DevOps project.
pathPrefixStringDirectory holding the agent; null when the whole repo is the agent.
branchStringBranch 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.

ValueDescription
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.

FieldTypeDescription
kindReinforcementLoopAgentErrorKind!
resources[ReinforcementLoopAgentResourceKind!]!The kinds of resource the loop couldn't read.
objects[ReinforcementLoopAgentObject!]!The objects the loop couldn't read.
messageString!A sentence for the user.
sinceDateTime!When the problem was first seen.
detailStringSnowflake's own message; null for MISSING_PERMISSIONS.
grantSqlStringThe 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.

FieldTypeDescription
installationUuidUUID!The GitHub App installation that reads the repo.
ownerString!The installation's GitHub org.
repoString!Repository name within the org.
pathPrefixStringDirectory holding the agent; null when the whole repo is the agent.
branchStringBranch 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.

FieldTypeDescription
kindReinforcementLoopAgentResourceKind!
nameString!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).

ValueDescription
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.

FieldTypeDescription
kindReinforcementLoopAgentErrorKind!
resources[ReinforcementLoopAgentResourceKind!]!The kinds of resource the loop couldn't read.
objects[ReinforcementLoopAgentObject!]!The objects the loop couldn't read.
messageString!A sentence for the user.
sinceDateTime!When the problem was first seen.
detailStringSnowflake's own message; null for MISSING_PERMISSIONS.
grantSqlStringThe 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.

FieldTypeDescription
clusterKeyString!Stable key; the value to put in selectedClusterKeys.
nameString!Display name.
descriptionString!One-line summary of what belongs in the cluster.
kindReinforcementLoopClusterKind!
derivationClusteringDerivation!How membership is computed: RULE evaluates criteria as SQL; LLM classifies each conversation against classificationCriteria.
sourceMonitorUuidUUIDFor an EVAL_DERIVED cluster, the eval monitor it tracks.
criteriaFilterGroup!Membership criteria as a filter tree. Empty on an LLM cluster, whose definition is classificationCriteria.
classificationCriteriaString!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).

ValueDescription
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.

ValueDescription
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.

ValueDescription
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.

ValueDescription
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.

ValueDescription
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.

ValueDescription
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.

ValueDescription
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.

FieldTypeDescription
issueSpaceUuidUUID!The Issue space; the id updateReinforcementLoopSelector takes.
agentNameString!
traceTableMconString!
scopeWorkflowStringThe 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.
selectsAllClustersBoolean!True when no selection is saved, so the loop diagnoses every current cluster, including clusters added later. selectAllClusters restores it.
isEnabledBoolean!Whether the loop runs for this Issue space.
evalScoreThresholdFloat!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.

FieldTypeDescription
timeFieldFilterValueFieldInput!
lookbackInHrsInt!

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.

ValueDescription
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.

ValueDescription
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.

ValueDescription
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.

FieldTypeDescription
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.
minDurationFloatMinimum duration in seconds
maxDurationFloatMaximum duration in seconds
minPromptTokensIntMinimum prompt tokens
maxPromptTokensIntMaximum prompt tokens
minCompletionTokensIntMinimum completion tokens
maxCompletionTokensIntMaximum completion tokens
minTotalTokensIntMinimum total tokens
maxTotalTokensIntMaximum total tokens
minCostFloatMinimum 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.
maxCostFloatMaximum token cost of a trace, in the same costUnit
minQueryCostFloatMinimum 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.
maxQueryCostFloatMaximum query cost of a trace, in the same costUnit
minTotalCostFloatMinimum 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.
maxTotalCostFloatMaximum total cost of a trace, in the same costUnit
conversationIdStringFilter by exact conversation ID
traceIdStringFilter by exact trace ID (hex-encoded)
workflowAgentStringScope 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.
searchQueryStringFilter 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.
runUuidUUIDFilter 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).

FieldTypeDescription
hasNextPageBoolean!Whether there are more results after this page
hasPreviousPageBoolean!Whether there are more results before this page
startCursorStringCursor of the first edge
endCursorStringCursor 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).

ValueDescription
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.

ValueDescription
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.

FieldTypeDescription
fieldTraceSegmentField!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.

ValueDescription
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.

FieldTypeDescription
timestampDateTime!Start of the time bucket
valueFloatMetric 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.