Mutation
mutation UpdateDinoAiAgentDefinition($input: UpdateDinoAiAgentDefinitionInput!) {
updateDinoAiAgentDefinition(input: $input) {
dinoAiAgentDefinition {
slug
name
source
version
role
goal
}
}
}Variables
{
"input": {
"slug": "string",
"name": "string",
"spec": {
"role": "string",
"goal": "string",
"backstory": "string"
}
}
}Response
{
"data": {
"updateDinoAiAgentDefinition": {
"dinoAiAgentDefinition": {
"slug": "string",
"name": "string",
"source": "YAML",
"version": 1,
"role": "string",
"goal": "string"
}
}
}
}updateDinoAiAgentDefinition
Replaces a DinoAI agent definition in the workspace the key targets: a workspace key’s own, or the one in the X-Paradime-Workspace header. A slug no agent holds is NOT_FOUND, and an agent from .dinoai/agents/ is CONFLICT. Needs dinoai:admin:write.
MUTATION
updateDinoAiAgentDefinition(input: UpdateDinoAiAgentDefinitionInput!): UpdateDinoAiAgentDefinitionPayload!Arguments
input
required
The agent to change.
dinoAiAgentDefinition
The agent as stored.
Mutation
mutation UpdateDinoAiAgentDefinition($input: UpdateDinoAiAgentDefinitionInput!) {
updateDinoAiAgentDefinition(input: $input) {
dinoAiAgentDefinition {
slug
name
source
version
role
goal
}
}
}Variables
{
"input": {
"slug": "string",
"name": "string",
"spec": {
"role": "string",
"goal": "string",
"backstory": "string"
}
}
}Response
{
"data": {
"updateDinoAiAgentDefinition": {
"dinoAiAgentDefinition": {
"slug": "string",
"name": "string",
"source": "YAML",
"version": 1,
"role": "string",
"goal": "string"
}
}
}
}