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
| Argument | Type | Description |
|---|---|---|
input | InstallGenieCollectorInput! |
Returns
InstallGenieCollector
Example
mutation InstallGenieCollector($input: InstallGenieCollectorInput!) {
installGenieCollector(input: $input) {
ok
}
}Types used only by installGenieCollector
installGenieCollectorInstallGenieCollector
InstallGenieCollectorObject 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.
| Field | Type | Description |
|---|---|---|
ok | Boolean! | 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
InstallGenieCollectorInputInput object type.
| Field | Type | Description |
|---|---|---|
warehouseUuid | UUID! | Warehouse UUID |
agentName | String! | Genie space_id being registered (carried for telemetry/association). |
catalog | String! | Unity Catalog catalog where the collector will write the Genie trace table. |
schema | String! | Unity Catalog schema where the collector will write the Genie trace table. |
connectionUuid | UUID | Connection 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
| Argument | Type | Description |
|---|---|---|
issueUuid | UUID! | The issueUuid of a getReinforcementLoopV2Issues node. |
url | String! | 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
linkReinforcementLoopIssueTicketLinkReinforcementLoopIssueTicket
LinkReinforcementLoopIssueTicketObject type.
| Field | Type | Description |
|---|---|---|
issueUuid | UUID! | |
status | ReinforcementLoopIssueStatus! | |
linearTicket | AgentHealthIssueLinearTicket | The 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
| Argument | Type | Description |
|---|---|---|
issueUuid | UUID! | The issueUuid of a getReinforcementLoopV2Issues node. |
linkUrl | String | An http(s) link to the fix. |
Returns
MarkReinforcementLoopIssueFixed
Example
mutation MarkReinforcementLoopIssueFixed($issueUuid: UUID!) {
markReinforcementLoopIssueFixed(issueUuid: $issueUuid) {
issueUuid
status
}
}Types used only by markReinforcementLoopIssueFixed
markReinforcementLoopIssueFixedMarkReinforcementLoopIssueFixed
MarkReinforcementLoopIssueFixedObject type.
| Field | Type | Description |
|---|---|---|
issueUuid | UUID! | |
status | ReinforcementLoopIssueStatus! |
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
| Argument | Type | Description |
|---|---|---|
issueUuid | UUID! | The issueUuid of a getReinforcementLoopV2Issues node. |
linkUrl | String | An 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
markReinforcementLoopIssueInProgressMarkReinforcementLoopIssueInProgress
MarkReinforcementLoopIssueInProgressObject type.
| Field | Type | Description |
|---|---|---|
issueUuid | UUID! | |
status | ReinforcementLoopIssueStatus! |
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
| Argument | Type | Description |
|---|---|---|
spaceUuid | UUID! |
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
refreshConversationClusteringSpaceRefreshConversationClusteringSpace
RefreshConversationClusteringSpaceObject type.
| Field | Type | Description |
|---|---|---|
space | ConversationClusteringSpaceType |
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
| Argument | Type | Description |
|---|---|---|
lookbackDays | Int! | |
spaceUuid | UUID! |
Returns
RequestConversationClusteringBackfill
Example
mutation RequestConversationClusteringBackfill($lookbackDays: Int!, $spaceUuid: UUID!) {
requestConversationClusteringBackfill(lookbackDays: $lookbackDays, spaceUuid: $spaceUuid) {
readyFrom
readyTo
}
}Types used only by requestConversationClusteringBackfill
requestConversationClusteringBackfillRequestConversationClusteringBackfill
RequestConversationClusteringBackfillObject type.
| Field | Type | Description |
|---|---|---|
space | ConversationClusteringSpaceType! | |
readyFrom | DateTime! | |
readyTo | DateTime! |
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
| Argument | Type | Description |
|---|---|---|
input | SetLinearWebhookSecretInput! |
Returns
SetLinearWebhookSecret
Example
mutation SetLinearWebhookSecret($input: SetLinearWebhookSecretInput!) {
setLinearWebhookSecret(input: $input) {
integration {
uuid
webhookUrl
webhookEnabled
defaultTeamId
integrationName
}
}
}Types used only by setLinearWebhookSecret
setLinearWebhookSecretSetLinearWebhookSecret
SetLinearWebhookSecretObject type.
| Field | Type | Description |
|---|---|---|
integration | LinearIntegrationResult |
SetLinearWebhookSecretInput
SetLinearWebhookSecretInputInput object type.
| Field | Type | Description |
|---|---|---|
webhookSecret | String! | Linear's webhook signing secret (shown in the webhook's settings in Linear, after registering the URL from configureLinearIntegration). |
Related types
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
| Argument | Type | Description |
|---|---|---|
setUuid | UUID! | Golden set to run a test against. |
targetPath | String | Dev 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
startGoldenTestRunStartGoldenTestRun
StartGoldenTestRunObject type.
| Field | Type | Description |
|---|---|---|
run | GoldenTestRun |
Related types
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
| Argument | Type | Description |
|---|---|---|
comment | String | Free text. Required for reason OTHER. |
conversationId | String | Required for CONVERSATION_DOESNT_BELONG and CONVERSATION_AGENT_RECOVERED, and must be one of the issue's conversations. Not allowed with other reasons. |
duplicateOfIssueUuid | UUID | Required for DUPLICATE: another RL V2 issue of the same agent. |
fixPrUrl | String | Required for FIX_WORKED. |
issueReportUuid | UUID! | The issueReportUuid of the node, as the person saw it. |
issueUuid | UUID! | The issueUuid of a getReinforcementLoopV2Issues node. |
priorityReason | ReinforcementLoopFeedbackPriorityReason | Required for WRONG_PRIORITY, with suggestedPriority. |
rating | ReinforcementLoopFeedbackRating! | UNDO withdraws the caller's current feedback on the issue, or on conversationId, and takes no reason, comment or reason-specific fields. |
reason | ReinforcementLoopFeedbackReason | UP takes no reason, FIX_WORKED, HARD_TO_UNDERSTAND or SHOULD_RANK_HIGHER. DOWN needs a reason other than FIX_WORKED or SHOULD_RANK_HIGHER. |
shownPriority | AgentHealthPriority | The priority the person saw. |
suggestedPriority | AgentHealthPriority | Required 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
submitReinforcementLoopIssueFeedbackSubmitReinforcementLoopIssueFeedback
SubmitReinforcementLoopIssueFeedbackObject type.
| Field | Type | Description |
|---|---|---|
feedbackUuid | UUID! |
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
| Argument | Type | Description |
|---|---|---|
issueUuid | UUID! | The issueUuid of a getReinforcementLoopV2Issues node. |
Returns
UndoReinforcementLoopIssueStatus
Example
mutation UndoReinforcementLoopIssueStatus($issueUuid: UUID!) {
undoReinforcementLoopIssueStatus(issueUuid: $issueUuid) {
issueUuid
status
}
}Types used only by undoReinforcementLoopIssueStatus
undoReinforcementLoopIssueStatusUndoReinforcementLoopIssueStatus
UndoReinforcementLoopIssueStatusObject type.
| Field | Type | Description |
|---|---|---|
issueUuid | UUID! | |
status | ReinforcementLoopIssueStatus! |
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
| Argument | Type | Description |
|---|---|---|
issueUuid | UUID! | The issueUuid of a getReinforcementLoopV2Issues node. |
Returns
UnignoreReinforcementLoopIssue
Example
mutation UnignoreReinforcementLoopIssue($issueUuid: UUID!) {
unignoreReinforcementLoopIssue(issueUuid: $issueUuid) {
issueUuid
}
}Types used only by unignoreReinforcementLoopIssue
unignoreReinforcementLoopIssueUnignoreReinforcementLoopIssue
UnignoreReinforcementLoopIssueObject type.
| Field | Type | Description |
|---|---|---|
issueUuid | UUID! |
Related types
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
| Argument | Type | Description |
|---|---|---|
agentMcon | String | Canonical agent MCON. Supply alone. |
agentName | String | Exact span name. Requires traceTableMcon. |
override | AgentAutoSetupChoice! | New choice. ON also retries skipped setup. |
traceTableMcon | String | Span 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
updateAgentAutoSetupUpdateAgentAutoSetup
UpdateAgentAutoSetupObject type.
| Field | Type | Description |
|---|---|---|
state | AgentAutoSetupState! | 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
| Argument | Type | Description |
|---|---|---|
enabled | Boolean! | 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
updateAgentAutoSetupAccountSettingUpdateAgentAutoSetupAccountSetting
UpdateAgentAutoSetupAccountSettingObject type.
| Field | Type | Description |
|---|---|---|
setting | AgentAutoSetupAccountSetting! | The saved account setting. |
Related types
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
| Argument | Type | Description |
|---|---|---|
input | UpdateConversationClusteringSettingsInput! |
Returns
UpdateConversationClusteringSettings
Example
mutation UpdateConversationClusteringSettings($input: UpdateConversationClusteringSettingsInput!) {
updateConversationClusteringSettings(input: $input) {
settings {
snowflakeModelId
}
}
}Types used only by updateConversationClusteringSettings
updateConversationClusteringSettingsUpdateConversationClusteringSettings
UpdateConversationClusteringSettingsObject type.
| Field | Type | Description |
|---|---|---|
settings | ConversationClusteringSettings! |
UpdateConversationClusteringSettingsInput
UpdateConversationClusteringSettingsInputInput object type.
| Field | Type | Description |
|---|---|---|
snowflakeModelId | String | Snowflake 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
| Argument | Type | Description |
|---|---|---|
input | UpdateGoldenSetInput! |
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
updateGoldenSetUpdateGoldenSet
UpdateGoldenSetObject type.
| Field | Type | Description |
|---|---|---|
goldenSet | GoldenSet |
UpdateGoldenSetInput
UpdateGoldenSetInputInput object type.
| Field | Type | Description |
|---|---|---|
setUuid | UUID! | Set to update. |
name | String | New display name. |
prodTargetPath | String | New baseline (prod) path. |
devTargetPath | String | New default test (dev) path. |
evalConfig | GenericScalar | New eval configuration — same {"rules": [...]} contract as createGoldenSet (see GoldenSet.evalConfig). |
retentionDays | Int | New 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
| Argument | Type | Description |
|---|---|---|
agentName | String! | The agent's name. |
splitBy | ObservedAgentSplitByInput | The new split setting. Null or omitted leaves it unchanged. |
traceTableMcon | String! | 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
updateObservedAgentSettingsObservedAgentSplitByInput
ObservedAgentSplitByInputEnum type. A new split setting for an observed agent.
| Value | Description |
|---|---|
WORKFLOW | List each workflow of the agent as its own agent. |
NONE | Turn the split off. |
UpdateObservedAgentSettings
UpdateObservedAgentSettingsObject type.
| Field | Type | Description |
|---|---|---|
settings | ObservedAgentSettings! | The agent's settings after the update. |
Related types
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
| Argument | Type | Description |
|---|---|---|
input | UpdateReinforcementLoopAgentInput! |
Returns
UpdateReinforcementLoopAgent
Example
mutation UpdateReinforcementLoopAgent($input: UpdateReinforcementLoopAgentInput!) {
updateReinforcementLoopAgent(input: $input) {
agent {
agentName
traceTableMcon
isPaused
isRunning
lastCheckedAt
requiresCodeRepo
}
}
}Types used only by updateReinforcementLoopAgent
updateReinforcementLoopAgentReinforcementLoopAgentCodeRepoInput
ReinforcementLoopAgentCodeRepoInputInput object type.
| Field | Type | Description |
|---|---|---|
installationUuid | UUID! | One of the account's GitHub App installations or Azure DevOps integrations. |
project | String | The Azure DevOps project, as getReinforcementLoopCodeProjects lists it. Required for an Azure DevOps repo; omit for a GitHub repo. |
repo | String! | Repository name, as getReinforcementLoopCodeRepos lists it. |
pathPrefix | String | Directory holding the agent. Omitted, null or empty: the whole repo. |
branch | String | Branch the agent runs from. Omitted, null or empty: the repo's default branch. |
ReinforcementLoopAgentGithubCodeRepoInput
ReinforcementLoopAgentGithubCodeRepoInputInput object type.
| Field | Type | Description |
|---|---|---|
installationUuid | UUID! | One of the account's GitHub App installations. |
repo | String! | Repository name within the installation's org, as getReinforcementLoopGithubRepos lists it. |
pathPrefix | String | Directory holding the agent. Omitted, null or empty: the whole repo. |
branch | String | Branch the agent runs from. Omitted, null or empty: the repo's default branch. |
UpdateReinforcementLoopAgent
UpdateReinforcementLoopAgentObject type.
| Field | Type | Description |
|---|---|---|
agent | ReinforcementLoopAgent! | The agent after the update. |
UpdateReinforcementLoopAgentInput
UpdateReinforcementLoopAgentInputInput object type.
| Field | Type | Description |
|---|---|---|
agentName | String! | Observability agent name. |
traceTableMcon | String! | MCON of the agent's trace table, as on getAgentGraph. |
isPaused | Boolean | Pause 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
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
| Argument | Type | Description |
|---|---|---|
input | UpdateReinforcementLoopSelectorInput! |
Returns
UpdateReinforcementLoopSelector
Example
mutation UpdateReinforcementLoopSelector($input: UpdateReinforcementLoopSelectorInput!) {
updateReinforcementLoopSelector(input: $input) {
selector {
issueSpaceUuid
agentName
traceTableMcon
scopeWorkflow
selectedClusterKeys
selectsAllClusters
isEnabled
evalScoreThreshold
}
}
}Types used only by updateReinforcementLoopSelector
updateReinforcementLoopSelectorUpdateReinforcementLoopSelector
UpdateReinforcementLoopSelectorObject type.
| Field | Type | Description |
|---|---|---|
selector | ReinforcementLoopSelector! | The selector after the update. |
UpdateReinforcementLoopSelectorInput
UpdateReinforcementLoopSelectorInputInput object type.
| Field | Type | Description |
|---|---|---|
issueSpaceUuid | UUID! | issueSpaceUuid from the selector, or the ISSUE space's uuid. |
selectedClusterKeys | [String!] | Keys from availableClusters. Omit or null: unchanged; []: clear. |
selectAllClusters | Boolean | true: select every current cluster, including clusters added later. Cannot be combined with selectedClusterKeys. false or null: same as omitting it. |
isEnabled | Boolean | Turn 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
| Argument | Type | Description |
|---|---|---|
input | UpsertAgentCostRateInput! |
Returns
UpsertAgentCostRate
Example
mutation UpsertAgentCostRate($input: UpsertAgentCostRateInput!) {
upsertAgentCostRate(input: $input) {
rate {
uuid
warehouseUuid
unit
usageType
amountPerUnit
currency
createdTime
updatedTime
}
}
}Types used only by upsertAgentCostRate
upsertAgentCostRateUpsertAgentCostRate
UpsertAgentCostRateObject type.
| Field | Type | Description |
|---|---|---|
rate | AgentCostRate |
UpsertAgentCostRateInput
UpsertAgentCostRateInputInput object type.
| Field | Type | Description |
|---|---|---|
warehouseUuid | UUID | Warehouse the rate applies to. Omit it for the account-wide rate, which applies to every warehouse without its own rate. |
unit | CostRateUnit! | Billing unit the rate prices. Only SNOWFLAKE_CREDIT is accepted for now, and it needs a Snowflake warehouse. |
usageType | CostRateUsageType! | AGENT prices the agent's model calls. COMPUTE prices the warehouse compute of the SQL the agent runs. |
amountPerUnit | Float! | 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. |
currency | String | ISO 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
| Argument | Type | Description |
|---|---|---|
input | UpsertLlmPriceBookOverrideInput! |
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
upsertLlmPriceBookOverrideUpsertLlmPriceBookOverride
UpsertLlmPriceBookOverrideObject type.
| Field | Type | Description |
|---|---|---|
override | LlmPriceBookOverride |
UpsertLlmPriceBookOverrideInput
UpsertLlmPriceBookOverrideInputInput object type.
| Field | Type | Description |
|---|---|---|
warehouseUuid | UUID | Reserved for a future per-connection scope. Must be omitted or null: a non-null value is rejected. Every override applies to all connections. |
computation | ComputationId! | Pricing method the rate belongs to. |
model | String! | 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. |
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. |
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.
