Agent action policies (GraphQL)

Related queries and mutations in AI features. Each has its own section.

Queries

getAgentActionPolicies (query)

getAgentActionPolicies is a query in the Monte Carlo GraphQL API, in AI features. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Which actions agents take on their own and which they only suggest: the account-level entries, then one entry per action for each metadata domain the caller can access.

Arguments

ArgumentTypeDescription
domainIds[UUID!]Only return these metadata domains. Other ids are ignored, and an empty list returns all of them. The account-level entries are always returned.

Returns

[AgentActionPolicyEntry!]!

Example

query GetAgentActionPolicies {
  getAgentActionPolicies {
    domainId
    domainName
    actionType
    mode
    source
    overrideMode
  }
}

Related types

AgentActionPolicyEntry, UUID

getAgentActionPolicyForAlert (query)

getAgentActionPolicyForAlert is a query in the Monte Carlo GraphQL API, in AI features. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

The mode agents follow for each action on one alert. An alert in several domains gets the strictest mode across all of them.

Arguments

ArgumentTypeDescription
alertIdUUID!ID of the alert

Returns

[AgentActionModeForAlert!]!

Example

query GetAgentActionPolicyForAlert($alertId: UUID!) {
  getAgentActionPolicyForAlert(alertId: $alertId) {
    actionType
    mode
  }
}

Types used only by getAgentActionPolicyForAlert

AgentActionModeForAlert

Object type. The mode agents follow for one action on one alert.

FieldTypeDescription
actionTypeAgentActionType!The action.
modeAgentActionMode!The mode.

Related types

AgentActionMode, AgentActionType, UUID

Mutations

resetAgentActionPolicy (mutation)

resetAgentActionPolicy is a mutation in the Monte Carlo GraphQL API, in AI features. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Remove an action's mode for a domain or for the account, so the next level applies. Needs a person. Agents, account service API keys and agent runs acting for a person are refused.

Arguments

ArgumentTypeDescription
actionTypeAgentActionType!The action.
domainIdUUIDThe metadata domain to reset. Omit to reset the account-level mode.

Returns

ResetAgentActionPolicy

Example

mutation ResetAgentActionPolicy($actionType: AgentActionType!) {
  resetAgentActionPolicy(actionType: $actionType) {
    entries {
      domainId
      domainName
      actionType
      mode
      source
      overrideMode
    }
  }
}

Types used only by resetAgentActionPolicy

ResetAgentActionPolicy

Object type. Remove an action's mode for a domain or the account, so the next level applies.

FieldTypeDescription
entries[AgentActionPolicyEntry!]!The scope's entries after the change.

Related types

AgentActionPolicyEntry, AgentActionType, UUID

setAgentActionPolicy (mutation)

setAgentActionPolicy is a mutation in the Monte Carlo GraphQL API, in AI features. Send it to https://api.getmontecarlo.com/graphql with an API key; see API authentication.

Status: Experimental

Set whether agents take an action themselves or only suggest it, for a domain or for the account. Needs a person. Agents, account service API keys and agent runs acting for a person are refused.

Arguments

ArgumentTypeDescription
actionTypeAgentActionType!The action.
domainIdUUIDThe metadata domain to set the mode for. Omit to set it for the account; domains without their own mode follow the account.
modeAgentActionMode!The mode.

Returns

SetAgentActionPolicy

Example

mutation SetAgentActionPolicy($actionType: AgentActionType!, $mode: AgentActionMode!) {
  setAgentActionPolicy(actionType: $actionType, mode: $mode) {
    entries {
      domainId
      domainName
      actionType
      mode
      source
      overrideMode
    }
  }
}

Types used only by setAgentActionPolicy

SetAgentActionPolicy

Object type. Set whether agents take an action themselves or only suggest it.

FieldTypeDescription
entries[AgentActionPolicyEntry!]!The scope's entries after the change.

Related types

AgentActionMode, AgentActionPolicyEntry, AgentActionType, UUID

Source: The GraphQL API reference

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