Agent questions and observations (GraphQL)

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

Queries

getAgentQuestionObservations (query)

getAgentQuestionObservations 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

Get the data problems that agent questions asked about. A question that asked about none gives no row

Arguments

ArgumentTypeDescription
questionIds[UUID!]!

Returns

[AgentQuestionObservation!]!

Example

query GetAgentQuestionObservations($questionIds: [UUID!]!) {
  getAgentQuestionObservations(questionIds: $questionIds) {
    questionId
    observationId
    mcons
    tables
    column
    kind
    symptom
    rowCount
    sinceTime
    isOtherDomain
    verdict
    impact
  }
}

Types used only by getAgentQuestionObservations

AgentQuestionObservation

Object type. The data problem an agent question asked about.

The symptom is null and the evidence empty when the request's sampling policy may not reuse
the text.

FieldTypeDescription
questionIdUUID!
observationIdUUID!
mcons[String!]!
tables[String!]!The full table ids of the MCONs.
columnStringThe column with the problem. Null for a whole table.
kindTeammateObservationKind!
symptomStringWhat is wrong. Null when the sampling policy hides it.
evidence[TeammateObservationEvidence!]!The sources behind the symptom. Empty when the sampling policy hides them.
rowCountBigIntThe rows with the problem.
sinceTimeDateTimeWhen the problem started.
holdingDomains[ObservationHoldingDomain!]!The domains that hold the tables. Names show even for a domain the caller cannot access, so the person knows who owns the data.
isOtherDomainBoolean!True when at least one domain holds the tables and none of them is the question's domain.
verdictTeammateObservationVerdictNull until a person answers.
impactTeammateObservationImpact!
ObservationHoldingDomain

Object type. A domain that holds an observation's tables.

FieldTypeDescription
uuidUUID!
nameString!
TeammateObservationEvidence

Object type. One source behind an observation's symptom.

FieldTypeDescription
toolString!The tool that read the data.
queryStringThe tool call's arguments as JSON.
findingStringWhat the research found in the result.
TeammateObservationImpact

Enum type. How much the problem matters, as Bayes rated it.

ValueDescription
LOW
HIGH
CRITICAL
TeammateObservationKind

Enum type. What is wrong with the data.

ValueDescription
EMPTY_VALUES
INVALID_VALUES
INCONSISTENT_VALUES
DUPLICATES
OUT_OF_RANGE
OTHER

Related types

BigInt, DateTime, TeammateObservationVerdict, UUID

getAgentQuestions (query)

getAgentQuestions 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

List the questions agents asked in a domain, oldest first

Arguments

ArgumentTypeDescription
domainUuidUUID!
statuses[AgentQuestionStatus!]Statuses to return. Defaults to open questions.
channelIdStringOnly questions asked in this channel.
threadRootRefStringOnly questions asked in the thread with this root message.
answeredSinceDateTimeOnly questions answered at or after this time. Leaves out unanswered questions.
answeredBeforeDateTimeOnly questions answered before this time. Leaves out unanswered questions.

Returns

[AgentQuestion!]!

Example

query GetAgentQuestions($domainUuid: UUID!) {
  getAgentQuestions(domainUuid: $domainUuid) {
    id
    domainUuid
    questionText
    agent
    platform
    teamId
    channelId
    threadRef
    threadRootRef
    agentThreadId
    askedTime
    status
    answeredTime
    answeredBy
    memoryId
    answerSummary
  }
}

Related types

AgentQuestion, AgentQuestionStatus, DateTime, UUID

Mutations

answerAgentQuestion (mutation)

answerAgentQuestion 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

Mark an AI agent's question answered by a memory or an answer summary

Arguments

ArgumentTypeDescription
answerSummaryStringOne sentence on what the person answered. At most 500 characters.
memoryIdUUIDA memory in the question's domain.
questionIdUUID!

Returns

AnswerAgentQuestion

Example

mutation AnswerAgentQuestion($questionId: UUID!) {
  answerAgentQuestion(questionId: $questionId) {
    question {
      id
      domainUuid
      questionText
      agent
      platform
      teamId
      channelId
      threadRef
      threadRootRef
      agentThreadId
      askedTime
      status
      answeredTime
      answeredBy
      memoryId
      answerSummary
    }
  }
}

Types used only by answerAgentQuestion

AnswerAgentQuestion

Object type. Mark an open question answered by a memory, a summary of the reply, or both.

A question answered by a summary alone can later take the memory saved from the same reply.

FieldTypeDescription
questionAgentQuestion!

Related types

AgentQuestion, UUID

recordAgentQuestion (mutation)

recordAgentQuestion 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

Save a question an AI agent asked the team

Arguments

ArgumentTypeDescription
agentString!The agent that asked.
domainUuidUUID!
locationAgentQuestionLocationInputWhere the question was asked. Defaults to web chat.
questionTextString!At most 3000 characters.

Returns

RecordAgentQuestion

Example

mutation RecordAgentQuestion($agent: String!, $domainUuid: UUID!, $questionText: String!) {
  recordAgentQuestion(agent: $agent, domainUuid: $domainUuid, questionText: $questionText) {
    question {
      id
      domainUuid
      questionText
      agent
      platform
      teamId
      channelId
      threadRef
      threadRootRef
      agentThreadId
      askedTime
      status
      answeredTime
      answeredBy
      memoryId
      answerSummary
    }
  }
}

Types used only by recordAgentQuestion

AgentQuestionLocationInput

Input object type. Where the question was asked. A web chat question sets only the agent thread id.

FieldTypeDescription
platformAgentQuestionPlatform!
teamIdString
channelIdString
threadRefString
threadRootRefStringThe root message of the thread. Defaults to threadRef, a top-level message.
agentThreadIdString
RecordAgentQuestion

Object type. Save an open question an agent asked the team in a domain.

FieldTypeDescription
questionAgentQuestion!

Related types

AgentQuestion, AgentQuestionPlatform, UUID

recordObservationVerdict (mutation)

recordObservationVerdict 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

Save a person's answer about a data problem an agent asked

Arguments

ArgumentTypeDescription
questionIdUUID!The question that asked about the observation.
verdictTeammateObservationVerdict!

Returns

RecordObservationVerdict

Example

mutation RecordObservationVerdict($questionId: UUID!, $verdict: TeammateObservationVerdict!) {
  recordObservationVerdict(questionId: $questionId, verdict: $verdict) {
    observation {
      id
      verdict
      answeredTime
    }
  }
}

Types used only by recordObservationVerdict

AnsweredTeammateObservation

Object type. An observation with the verdict an answer set.

FieldTypeDescription
idUUID!
verdictTeammateObservationVerdict!
answeredTimeDateTime!
RecordObservationVerdict

Object type. Save the answer to a question about an observation, and close the question as answered
with no memory. A later answer can change the verdict.

FieldTypeDescription
observationAnsweredTeammateObservation!

Related types

DateTime, TeammateObservationVerdict, UUID

Source: The GraphQL API reference

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