Agent traces, part 7 of 7 (GraphQL)

Related queries and mutations in Agent traces and evaluations. Each has its own section.

Mutations

installGenieCollector (mutation)

installGenieCollector 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

Synchronously install the Databricks Genie trace collector and return any missing Databricks grants. Call before registering a Genie agent; register only when ok is true.

Arguments

ArgumentTypeDescription
inputInstallGenieCollectorInput!

Returns

InstallGenieCollector

Example

mutation InstallGenieCollector($input: InstallGenieCollectorInput!) {
  installGenieCollector(input: $input) {
    ok
  }
}

Types used only by installGenieCollector

InstallGenieCollector

Object type. Synchronous registration-time gate: install the Genie collector and report
any missing Databricks grants. Does NOT create the agent — the caller registers
via createOrUpdatePlatformAgent only when ok is true.

FieldTypeDescription
okBoolean!True when every required Databricks grant is present and the collector installed. When false, missingGrants is non-empty and no agent should be registered.
missingGrants[GenieCollectorMissingGrant!]!Databricks grants the collector principal is missing; empty when ok. Block registration and surface these to the user until empty.
InstallGenieCollectorInput

Input object type.

FieldTypeDescription
warehouseUuidUUID!Warehouse UUID
agentNameString!Genie space_id being registered (carried for telemetry/association).
catalogString!Unity Catalog catalog where the collector will write the Genie trace table.
schemaString!Unity Catalog schema where the collector will write the Genie trace table.
connectionUuidUUIDConnection UUID. When omitted, keeps the registered agent's connection or reuses the collector connection at this location. Otherwise selects an allowed SQL connection on the warehouse. Multiple collectors at the location require an explicit connection. The chosen connection requires permission to use it.

Related types

GenieCollectorMissingGrant, UUID

linkReinforcementLoopIssueTicket (mutation)

linkReinforcementLoopIssueTicket 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

Links a pasted ticket or PR URL to a live RL V2 issue. A Linear, Jira or ServiceNow ticket URL that one of the account's integrations owns becomes the issue's ticket in that system, which replaces its other ticket there, and the issue's status then follows the ticket. A ticket closed as done marks the issue FIXED. A ticket closed without being done, such as a canceled one, is refused. Any other URL, or a ticket URL that can't sync, marks the issue in progress with the link, as markReinforcementLoopIssueInProgress does, and undoReinforcementLoopIssueStatus reverts it. A linked ticket clears the undo. The payload's linearTicket is set for a Linear ticket only. Read jiraTicket and serviceNowTicket from the issue. Monte Carlo staff can't change the status of issues.

Arguments

ArgumentTypeDescription
issueUuidUUID!The issueUuid of a getReinforcementLoopV2Issues node.
urlString!An http(s) link to a ticket or PR, such as a Linear issue, a Jira ticket or a ServiceNow incident.

Returns

LinkReinforcementLoopIssueTicket

Example

mutation LinkReinforcementLoopIssueTicket($issueUuid: UUID!, $url: String!) {
  linkReinforcementLoopIssueTicket(issueUuid: $issueUuid, url: $url) {
    issueUuid
    status
  }
}

Types used only by linkReinforcementLoopIssueTicket

LinkReinforcementLoopIssueTicket

Object type.

FieldTypeDescription
issueUuidUUID!
statusReinforcementLoopIssueStatus!
linearTicketAgentHealthIssueLinearTicketThe linked Linear ticket. Null when the link only marked the issue in progress.

Related types

AgentHealthIssueLinearTicket, ReinforcementLoopIssueStatus, UUID

markReinforcementLoopIssueFixed (mutation)

markReinforcementLoopIssueFixed 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

Marks a live RL V2 issue fixed. An issue that is already FIXED is left as is. undoReinforcementLoopIssueStatus reverts it. Monte Carlo staff can't change the status of issues.

Arguments

ArgumentTypeDescription
issueUuidUUID!The issueUuid of a getReinforcementLoopV2Issues node.
linkUrlStringAn http(s) link to the fix.

Returns

MarkReinforcementLoopIssueFixed

Example

mutation MarkReinforcementLoopIssueFixed($issueUuid: UUID!) {
  markReinforcementLoopIssueFixed(issueUuid: $issueUuid) {
    issueUuid
    status
  }
}

Types used only by markReinforcementLoopIssueFixed

MarkReinforcementLoopIssueFixed

Object type.

FieldTypeDescription
issueUuidUUID!
statusReinforcementLoopIssueStatus!

Related types

ReinforcementLoopIssueStatus, UUID

markReinforcementLoopIssueInProgress (mutation)

markReinforcementLoopIssueInProgress 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

Marks a live RL V2 issue in progress. On a FIXED issue this ends the fix. undoReinforcementLoopIssueStatus reverts it. Monte Carlo staff can't change the status of issues.

Arguments

ArgumentTypeDescription
issueUuidUUID!The issueUuid of a getReinforcementLoopV2Issues node.
linkUrlStringAn http(s) link to the work, such as a ticket.

Returns

MarkReinforcementLoopIssueInProgress

Example

mutation MarkReinforcementLoopIssueInProgress($issueUuid: UUID!) {
  markReinforcementLoopIssueInProgress(issueUuid: $issueUuid) {
    issueUuid
    status
  }
}

Types used only by markReinforcementLoopIssueInProgress

MarkReinforcementLoopIssueInProgress

Object type.

FieldTypeDescription
issueUuidUUID!
statusReinforcementLoopIssueStatus!

Related types

ReinforcementLoopIssueStatus, UUID

refreshConversationClusteringSpace (mutation)

refreshConversationClusteringSpace 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

Regenerate a clustering space's taxonomy from scratch (bumps the taxonomy version and re-discovers).

Arguments

ArgumentTypeDescription
spaceUuidUUID!

Returns

RefreshConversationClusteringSpace

Example

mutation RefreshConversationClusteringSpace($spaceUuid: UUID!) {
  refreshConversationClusteringSpace(spaceUuid: $spaceUuid) {
    space {
      uuid
      agentName
      scopeWorkflow
      facet
      isEnabled
      taxonomyVersion
      discoveryCompletedAt
      userGuidance
      state
      clustersWithheldReason
      classificationWatermark
      budgetLimited
      dailyClassificationBudget
      trailingDaySpend
    }
  }
}

Types used only by refreshConversationClusteringSpace

RefreshConversationClusteringSpace

Object type.

FieldTypeDescription
spaceConversationClusteringSpaceType

Related types

ConversationClusteringSpaceType, UUID

requestConversationClusteringBackfill (mutation)

requestConversationClusteringBackfill 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

Classify retained conversations from before an issue clustering space was enabled. The requested range is clamped to 30 days of retained history.

Arguments

ArgumentTypeDescription
lookbackDaysInt!
spaceUuidUUID!

Returns

RequestConversationClusteringBackfill

Example

mutation RequestConversationClusteringBackfill($lookbackDays: Int!, $spaceUuid: UUID!) {
  requestConversationClusteringBackfill(lookbackDays: $lookbackDays, spaceUuid: $spaceUuid) {
    readyFrom
    readyTo
  }
}

Types used only by requestConversationClusteringBackfill

RequestConversationClusteringBackfill

Object type.

FieldTypeDescription
spaceConversationClusteringSpaceType!
readyFromDateTime!
readyToDateTime!

Related types

ConversationClusteringSpaceType, DateTime, UUID

setLinearWebhookSecret (mutation)

setLinearWebhookSecret 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

Step 2 of 2: store the signing secret Linear issues after the webhook URL from configureLinearIntegration is registered, enabling ticket status sync.

Arguments

ArgumentTypeDescription
inputSetLinearWebhookSecretInput!

Returns

SetLinearWebhookSecret

Example

mutation SetLinearWebhookSecret($input: SetLinearWebhookSecretInput!) {
  setLinearWebhookSecret(input: $input) {
    integration {
      uuid
      webhookUrl
      webhookEnabled
      defaultTeamId
      integrationName
    }
  }
}

Types used only by setLinearWebhookSecret

SetLinearWebhookSecret

Object type.

FieldTypeDescription
integrationLinearIntegrationResult
SetLinearWebhookSecretInput

Input object type.

FieldTypeDescription
webhookSecretString!Linear's webhook signing secret (shown in the webhook's settings in Linear, after registering the URL from configureLinearIntegration).

Related types

LinearIntegrationResult

startGoldenTestRun (mutation)

startGoldenTestRun 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

Run a golden set's cases against a dev agent and score them vs the baseline.

Arguments

ArgumentTypeDescription
setUuidUUID!Golden set to run a test against.
targetPathStringDev REST endpoint path to hit; defaults to the set's dev target path.

Returns

StartGoldenTestRun

Example

mutation StartGoldenTestRun($setUuid: UUID!) {
  startGoldenTestRun(setUuid: $setUuid) {
    run {
      uuid
      status
      comparedBaselineUuid
      targetRef
      baselineStale
      createdTime
      updatedTime
      agentConfigSnapshot
    }
  }
}

Types used only by startGoldenTestRun

StartGoldenTestRun

Object type.

FieldTypeDescription
runGoldenTestRun

Related types

GoldenTestRun, UUID

submitReinforcementLoopIssueFeedback (mutation)

submitReinforcementLoopIssueFeedback 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

Rate an RL V2 issue, or one of its conversations, with a reason. Each call adds a row; the caller's newest row is their current feedback. Feedback from Monte Carlo staff is hidden from customers.

Arguments

ArgumentTypeDescription
commentStringFree text. Required for reason OTHER.
conversationIdStringRequired for CONVERSATION_DOESNT_BELONG and CONVERSATION_AGENT_RECOVERED, and must be one of the issue's conversations. Not allowed with other reasons.
duplicateOfIssueUuidUUIDRequired for DUPLICATE: another RL V2 issue of the same agent.
fixPrUrlStringRequired for FIX_WORKED.
issueReportUuidUUID!The issueReportUuid of the node, as the person saw it.
issueUuidUUID!The issueUuid of a getReinforcementLoopV2Issues node.
priorityReasonReinforcementLoopFeedbackPriorityReasonRequired for WRONG_PRIORITY, with suggestedPriority.
ratingReinforcementLoopFeedbackRating!UNDO withdraws the caller's current feedback on the issue, or on conversationId, and takes no reason, comment or reason-specific fields.
reasonReinforcementLoopFeedbackReasonUP takes no reason, FIX_WORKED, HARD_TO_UNDERSTAND or SHOULD_RANK_HIGHER. DOWN needs a reason other than FIX_WORKED or SHOULD_RANK_HIGHER.
shownPriorityAgentHealthPriorityThe priority the person saw.
suggestedPriorityAgentHealthPriorityRequired for WRONG_PRIORITY, with priorityReason. Not HIDDEN.

Returns

SubmitReinforcementLoopIssueFeedback

Example

mutation SubmitReinforcementLoopIssueFeedback($issueReportUuid: UUID!, $issueUuid: UUID!, $rating: ReinforcementLoopFeedbackRating!) {
  submitReinforcementLoopIssueFeedback(issueReportUuid: $issueReportUuid, issueUuid: $issueUuid, rating: $rating) {
    feedbackUuid
  }
}

Types used only by submitReinforcementLoopIssueFeedback

SubmitReinforcementLoopIssueFeedback

Object type.

FieldTypeDescription
feedbackUuidUUID!

Related types

AgentHealthPriority, ReinforcementLoopFeedbackPriorityReason, ReinforcementLoopFeedbackRating, ReinforcementLoopFeedbackReason, UUID

undoReinforcementLoopIssueStatus (mutation)

undoReinforcementLoopIssueStatus 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

Reverts the last markReinforcementLoopIssueFixed or markReinforcementLoopIssueInProgress on an issue. A later fix, ticket, draft PR or regression clears the undo, and the call then fails.

Arguments

ArgumentTypeDescription
issueUuidUUID!The issueUuid of a getReinforcementLoopV2Issues node.

Returns

UndoReinforcementLoopIssueStatus

Example

mutation UndoReinforcementLoopIssueStatus($issueUuid: UUID!) {
  undoReinforcementLoopIssueStatus(issueUuid: $issueUuid) {
    issueUuid
    status
  }
}

Types used only by undoReinforcementLoopIssueStatus

UndoReinforcementLoopIssueStatus

Object type.

FieldTypeDescription
issueUuidUUID!
statusReinforcementLoopIssueStatus!

Related types

ReinforcementLoopIssueStatus, UUID

unignoreReinforcementLoopIssue (mutation)

unignoreReinforcementLoopIssue 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

Clears the ignore on an RL V2 issue so the scheduled digest includes it again. An issue that isn't ignored is left as is. Monte Carlo staff can't un-ignore issues.

Arguments

ArgumentTypeDescription
issueUuidUUID!The issueUuid of a getReinforcementLoopV2Issues node.

Returns

UnignoreReinforcementLoopIssue

Example

mutation UnignoreReinforcementLoopIssue($issueUuid: UUID!) {
  unignoreReinforcementLoopIssue(issueUuid: $issueUuid) {
    issueUuid
  }
}

Types used only by unignoreReinforcementLoopIssue

UnignoreReinforcementLoopIssue

Object type.

FieldTypeDescription
issueUuidUUID!

Related types

UUID

updateAgentAutoSetup (mutation)

updateAgentAutoSetup 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

Set an agent's automatic coverage choice. ON retries skipped setup.

Arguments

ArgumentTypeDescription
agentMconStringCanonical agent MCON. Supply alone.
agentNameStringExact span name. Requires traceTableMcon.
overrideAgentAutoSetupChoice!New choice. ON also retries skipped setup.
traceTableMconStringSpan storage MCON. Requires agentName.

Returns

UpdateAgentAutoSetup

Example

mutation UpdateAgentAutoSetup($override: AgentAutoSetupChoice!) {
  updateAgentAutoSetup(override: $override) {
    state {
      agentMcon
      traceTableMcon
      agentName
      choice
      enabled
      origin
      canEdit
    }
  }
}

Types used only by updateAgentAutoSetup

UpdateAgentAutoSetup

Object type.

FieldTypeDescription
stateAgentAutoSetupState!The agent's resolved setting after the write.

Related types

AgentAutoSetupChoice, AgentAutoSetupState

updateAgentAutoSetupAccountSetting (mutation)

updateAgentAutoSetupAccountSetting 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

Set the account default for automatic coverage of new agents.

Arguments

ArgumentTypeDescription
enabledBoolean!Account default for automatic coverage on new agents.

Returns

UpdateAgentAutoSetupAccountSetting

Example

mutation UpdateAgentAutoSetupAccountSetting($enabled: Boolean!) {
  updateAgentAutoSetupAccountSetting(enabled: $enabled) {
    setting {
      enabled
      canEdit
      writesEnabled
    }
  }
}

Types used only by updateAgentAutoSetupAccountSetting

UpdateAgentAutoSetupAccountSetting

Object type.

FieldTypeDescription
settingAgentAutoSetupAccountSetting!The saved account setting.

Related types

AgentAutoSetupAccountSetting

updateConversationClusteringSettings (mutation)

updateConversationClusteringSettings 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

Set or clear account-level conversation clustering settings. Changing the Snowflake model rewrites the model on every existing Snowflake clustering space in the account.

Arguments

ArgumentTypeDescription
inputUpdateConversationClusteringSettingsInput!

Returns

UpdateConversationClusteringSettings

Example

mutation UpdateConversationClusteringSettings($input: UpdateConversationClusteringSettingsInput!) {
  updateConversationClusteringSettings(input: $input) {
    settings {
      snowflakeModelId
    }
  }
}

Types used only by updateConversationClusteringSettings

UpdateConversationClusteringSettings

Object type.

FieldTypeDescription
settingsConversationClusteringSettings!
UpdateConversationClusteringSettingsInput

Input object type.

FieldTypeDescription
snowflakeModelIdStringSnowflake Cortex model id, as listed by getWarehouseSupportedLlmModels(connectionType: "snowflake"). Null clears the setting; existing Snowflake spaces go back to the warehouse default.

Related types

ConversationClusteringSettings

updateGoldenSet (mutation)

updateGoldenSet 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

Update a golden set's settings.

Arguments

ArgumentTypeDescription
inputUpdateGoldenSetInput!

Returns

UpdateGoldenSet

Example

mutation UpdateGoldenSet($input: UpdateGoldenSetInput!) {
  updateGoldenSet(input: $input) {
    goldenSet {
      uuid
      name
      agentName
      traceTableMcon
      prodTargetPath
      devTargetPath
      evalConfig
      retentionDays
      testCaseCount
      lastUsedAt
      expiresAt
      createdTime
      updatedTime
    }
  }
}

Types used only by updateGoldenSet

UpdateGoldenSet

Object type.

FieldTypeDescription
goldenSetGoldenSet
UpdateGoldenSetInput

Input object type.

FieldTypeDescription
setUuidUUID!Set to update.
nameStringNew display name.
prodTargetPathStringNew baseline (prod) path.
devTargetPathStringNew default test (dev) path.
evalConfigGenericScalarNew eval configuration — same {"rules": [...]} contract as createGoldenSet (see GoldenSet.evalConfig).
retentionDaysIntNew retention window in days.

Related types

GenericScalar, GoldenSet, UUID

updateObservedAgentSettings (mutation)

updateObservedAgentSettings 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

Set how an agent traced to ClickHouse splits into workflow agents. Turning the split on lists the workflows of the last 7 days before it returns.

Arguments

ArgumentTypeDescription
agentNameString!The agent's name.
splitByObservedAgentSplitByInputThe new split setting. Null or omitted leaves it unchanged.
traceTableMconString!MCON of the agent's trace table, as on getAgentMetadataV2.

Returns

UpdateObservedAgentSettings

Example

mutation UpdateObservedAgentSettings($agentName: String!, $traceTableMcon: String!) {
  updateObservedAgentSettings(agentName: $agentName, traceTableMcon: $traceTableMcon) {
    settings {
      traceTableMcon
      agentName
      splitBy
    }
  }
}

Types used only by updateObservedAgentSettings

ObservedAgentSplitByInput

Enum type. A new split setting for an observed agent.

ValueDescription
WORKFLOWList each workflow of the agent as its own agent.
NONETurn the split off.
UpdateObservedAgentSettings

Object type.

FieldTypeDescription
settingsObservedAgentSettings!The agent's settings after the update.

Related types

ObservedAgentSettings

updateReinforcementLoopAgent (mutation)

updateReinforcementLoopAgent 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

Pause or resume the reinforcement loop for an agent, or set its GitHub and Azure DevOps code repos. 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. Each branch must exist on its repo, and each path prefix must be on the repo's branch, or its default branch when none is set. Omitted fields are unchanged. Creates the agent's settings if absent. Fails with VALIDATION_ERROR when a code repo is refused, and leaves the pause unchanged then. Fails with REQUEST_TIMEOUT when Azure DevOps doesn't answer in time, and RATE_LIMIT_EXCEEDED when it is limiting requests.

Arguments

ArgumentTypeDescription
inputUpdateReinforcementLoopAgentInput!

Returns

UpdateReinforcementLoopAgent

Example

mutation UpdateReinforcementLoopAgent($input: UpdateReinforcementLoopAgentInput!) {
  updateReinforcementLoopAgent(input: $input) {
    agent {
      agentName
      traceTableMcon
      isPaused
      isRunning
      lastCheckedAt
      requiresCodeRepo
    }
  }
}

Types used only by updateReinforcementLoopAgent

ReinforcementLoopAgentCodeRepoInput

Input object type.

FieldTypeDescription
installationUuidUUID!One of the account's GitHub App installations or Azure DevOps integrations.
projectStringThe Azure DevOps project, as getReinforcementLoopCodeProjects lists it. Required for an Azure DevOps repo; omit for a GitHub repo.
repoString!Repository name, as getReinforcementLoopCodeRepos lists it.
pathPrefixStringDirectory holding the agent. Omitted, null or empty: the whole repo.
branchStringBranch the agent runs from. Omitted, null or empty: the repo's default branch.
ReinforcementLoopAgentGithubCodeRepoInput

Input object type.

FieldTypeDescription
installationUuidUUID!One of the account's GitHub App installations.
repoString!Repository name within the installation's org, as getReinforcementLoopGithubRepos lists it.
pathPrefixStringDirectory holding the agent. Omitted, null or empty: the whole repo.
branchStringBranch the agent runs from. Omitted, null or empty: the repo's default branch.
UpdateReinforcementLoopAgent

Object type.

FieldTypeDescription
agentReinforcementLoopAgent!The agent after the update.
UpdateReinforcementLoopAgentInput

Input object type.

FieldTypeDescription
agentNameString!Observability agent name.
traceTableMconString!MCON of the agent's trace table, as on getAgentGraph.
isPausedBooleanPause or resume the loop for the agent. Omit or null: unchanged.
codeRepos[ReinforcementLoopAgentCodeRepoInput!]Replaces the agent's code repos, in order. Omit or null: unchanged. An empty list removes every repo. Can't be sent with githubCodeRepos.
githubCodeRepos[ReinforcementLoopAgentGithubCodeRepoInput!]Deprecated: send codeRepos. Replaces the agent's GitHub repos with these, in order; its Azure DevOps repos stay, after them. Omit or null: unchanged.

Related types

ReinforcementLoopAgent, UUID

updateReinforcementLoopSelector (mutation)

updateReinforcementLoopSelector 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

Change which Issue clusters the reinforcement loop diagnoses for an agent, or turn the loop on or off. Omitted fields are unchanged; [] clears the selection. Creates the selector if absent. Applies to future runs only.

Arguments

ArgumentTypeDescription
inputUpdateReinforcementLoopSelectorInput!

Returns

UpdateReinforcementLoopSelector

Example

mutation UpdateReinforcementLoopSelector($input: UpdateReinforcementLoopSelectorInput!) {
  updateReinforcementLoopSelector(input: $input) {
    selector {
      issueSpaceUuid
      agentName
      traceTableMcon
      scopeWorkflow
      selectedClusterKeys
      selectsAllClusters
      isEnabled
      evalScoreThreshold
    }
  }
}

Types used only by updateReinforcementLoopSelector

UpdateReinforcementLoopSelector

Object type.

FieldTypeDescription
selectorReinforcementLoopSelector!The selector after the update.
UpdateReinforcementLoopSelectorInput

Input object type.

FieldTypeDescription
issueSpaceUuidUUID!issueSpaceUuid from the selector, or the ISSUE space's uuid.
selectedClusterKeys[String!]Keys from availableClusters. Omit or null: unchanged; []: clear.
selectAllClustersBooleantrue: select every current cluster, including clusters added later. Cannot be combined with selectedClusterKeys. false or null: same as omitting it.
isEnabledBooleanTurn the loop on or off. Omit: unchanged.

Related types

ReinforcementLoopSelector, UUID

upsertAgentCostRate (mutation)

upsertAgentCostRate 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

Create or replace an agent cost rate: what one billing unit costs the customer, for the agent's model calls (AGENT) or its SQL (COMPUTE). Agent costs are shown in money once an agent has both rates in one currency. Replaces any existing rate for the same warehouse, unit and usage type. Requires the AI agent settings edit permission. The edit permission is account-wide. An editor limited to some domains can still change rates that price agents in every domain.

Arguments

ArgumentTypeDescription
inputUpsertAgentCostRateInput!

Returns

UpsertAgentCostRate

Example

mutation UpsertAgentCostRate($input: UpsertAgentCostRateInput!) {
  upsertAgentCostRate(input: $input) {
    rate {
      uuid
      warehouseUuid
      unit
      usageType
      amountPerUnit
      currency
      createdTime
      updatedTime
    }
  }
}

Types used only by upsertAgentCostRate

UpsertAgentCostRate

Object type.

FieldTypeDescription
rateAgentCostRate
UpsertAgentCostRateInput

Input object type.

FieldTypeDescription
warehouseUuidUUIDWarehouse the rate applies to. Omit it for the account-wide rate, which applies to every warehouse without its own rate.
unitCostRateUnit!Billing unit the rate prices. Only SNOWFLAKE_CREDIT is accepted for now, and it needs a Snowflake warehouse.
usageTypeCostRateUsageType!AGENT prices the agent's model calls. COMPUTE prices the warehouse compute of the SQL the agent runs.
amountPerUnitFloat!Price of one unit, such as 2.20 for $2.20 per credit. Must be positive and at most 999999999999. Rounded to six decimal places.
currencyStringISO 4217 currency code. Defaults to USD. Every rate on the account must use the same currency. Default: "USD".

Related types

AgentCostRate, CostRateUnit, CostRateUsageType, UUID

upsertLlmPriceBookOverride (mutation)

upsertLlmPriceBookOverride 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

Create or replace an LLM price book override: a negotiated per-model rate that replaces the shipped book's rate for its (computation, model) pair when agent costs are computed. All four per-million-token rates are required, because an override replaces the shipped rate whole. Replaces any existing override for the same pair. The new rate applies to every span still in retention, not just new ones. Cost monitor points already recorded keep the rate they were computed at, so a rate change shows as a step in a cost monitor. Requires the AI agent settings edit permission.

Arguments

ArgumentTypeDescription
inputUpsertLlmPriceBookOverrideInput!

Returns

UpsertLlmPriceBookOverride

Example

mutation UpsertLlmPriceBookOverride($input: UpsertLlmPriceBookOverrideInput!) {
  upsertLlmPriceBookOverride(input: $input) {
    override {
      uuid
      warehouseUuid
      computation
      model
      inputRate
      outputRate
      cacheReadRate
      cacheWriteRate
      createdTime
      updatedTime
    }
  }
}

Types used only by upsertLlmPriceBookOverride

UpsertLlmPriceBookOverride

Object type.

FieldTypeDescription
overrideLlmPriceBookOverride
UpsertLlmPriceBookOverrideInput

Input object type.

FieldTypeDescription
warehouseUuidUUIDReserved for a future per-connection scope. Must be omitted or null: a non-null value is rejected. Every override applies to all connections.
computationComputationId!Pricing method the rate belongs to.
modelString!Canonical model name: lowercase, without region or vendor prefixes, version or datestamp suffixes. A non-canonical name is rejected, because no lookup could ever match 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.

Related types

ComputationId, LlmPriceBookOverride, UUID

Source: The GraphQL API reference

This page is generated from the GraphQL schema on each release. Changes made in ReadMe are overwritten.