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
| Argument | Type | Description |
|---|---|---|
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
getAgentQuestionObservationsAgentQuestionObservation
AgentQuestionObservationObject 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.
| Field | Type | Description |
|---|---|---|
questionId | UUID! | |
observationId | UUID! | |
mcons | [String!]! | |
tables | [String!]! | The full table ids of the MCONs. |
column | String | The column with the problem. Null for a whole table. |
kind | TeammateObservationKind! | |
symptom | String | What is wrong. Null when the sampling policy hides it. |
evidence | [TeammateObservationEvidence!]! | The sources behind the symptom. Empty when the sampling policy hides them. |
rowCount | BigInt | The rows with the problem. |
sinceTime | DateTime | When 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. |
isOtherDomain | Boolean! | True when at least one domain holds the tables and none of them is the question's domain. |
verdict | TeammateObservationVerdict | Null until a person answers. |
impact | TeammateObservationImpact! |
ObservationHoldingDomain
ObservationHoldingDomainObject type. A domain that holds an observation's tables.
| Field | Type | Description |
|---|---|---|
uuid | UUID! | |
name | String! |
TeammateObservationEvidence
TeammateObservationEvidenceObject type. One source behind an observation's symptom.
| Field | Type | Description |
|---|---|---|
tool | String! | The tool that read the data. |
query | String | The tool call's arguments as JSON. |
finding | String | What the research found in the result. |
TeammateObservationImpact
TeammateObservationImpactEnum type. How much the problem matters, as Bayes rated it.
| Value | Description |
|---|---|
LOW | |
HIGH | |
CRITICAL |
TeammateObservationKind
TeammateObservationKindEnum type. What is wrong with the data.
| Value | Description |
|---|---|
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
| Argument | Type | Description |
|---|---|---|
domainUuid | UUID! | |
statuses | [AgentQuestionStatus!] | Statuses to return. Defaults to open questions. |
channelId | String | Only questions asked in this channel. |
threadRootRef | String | Only questions asked in the thread with this root message. |
answeredSince | DateTime | Only questions answered at or after this time. Leaves out unanswered questions. |
answeredBefore | DateTime | Only 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
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
answerAgentQuestionAnswerAgentQuestion
AnswerAgentQuestionObject 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.
| Field | Type | Description |
|---|---|---|
question | AgentQuestion! |
Related types
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
| Argument | Type | Description |
|---|---|---|
agent | String! | The agent that asked. |
domainUuid | UUID! | |
location | AgentQuestionLocationInput | Where the question was asked. Defaults to web chat. |
questionText | String! | 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
recordAgentQuestionAgentQuestionLocationInput
AgentQuestionLocationInputInput object type. Where the question was asked. A web chat question sets only the agent thread id.
| Field | Type | Description |
|---|---|---|
platform | AgentQuestionPlatform! | |
teamId | String | |
channelId | String | |
threadRef | String | |
threadRootRef | String | The root message of the thread. Defaults to threadRef, a top-level message. |
agentThreadId | String |
RecordAgentQuestion
RecordAgentQuestionObject type. Save an open question an agent asked the team in a domain.
| Field | Type | Description |
|---|---|---|
question | AgentQuestion! |
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
| Argument | Type | Description |
|---|---|---|
questionId | UUID! | The question that asked about the observation. |
verdict | TeammateObservationVerdict! |
Returns
RecordObservationVerdict
Example
mutation RecordObservationVerdict($questionId: UUID!, $verdict: TeammateObservationVerdict!) {
recordObservationVerdict(questionId: $questionId, verdict: $verdict) {
observation {
id
verdict
answeredTime
}
}
}Types used only by recordObservationVerdict
recordObservationVerdictAnsweredTeammateObservation
AnsweredTeammateObservationObject type. An observation with the verdict an answer set.
| Field | Type | Description |
|---|---|---|
id | UUID! | |
verdict | TeammateObservationVerdict! | |
answeredTime | DateTime! |
RecordObservationVerdict
RecordObservationVerdictObject 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.
| Field | Type | Description |
|---|---|---|
observation | AnsweredTeammateObservation! |
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.
