Mutation
mutation CreateDinoAiAgentDefinition($input: CreateDinoAiAgentDefinitionInput!) {
createDinoAiAgentDefinition(input: $input) {
dinoAiAgentDefinition {
slug
name
source
version
role
goal
}
}
}Variables
{
"input": {
"name": "string",
"spec": {
"role": "string",
"goal": "string",
"backstory": "string"
}
}
}Response
{
"data": {
"createDinoAiAgentDefinition": {
"dinoAiAgentDefinition": {
"slug": "string",
"name": "string",
"source": "YAML",
"version": 1,
"role": "string",
"goal": "string"
}
}
}
}createDinoAiAgentDefinition
Creates a DinoAI agent definition in the workspace the key targets: a workspace key’s own, or the one in the X-Paradime-Workspace header. An agent that holds the slug with the same settings is returned unchanged; with other settings, or from .dinoai/agents/, it is CONFLICT. Needs dinoai:admin:write.
MUTATION
createDinoAiAgentDefinition(input: CreateDinoAiAgentDefinitionInput!): CreateDinoAiAgentDefinitionPayload!Arguments
input
required
The agent to create.
dinoAiAgentDefinition
The agent as stored.
Mutation
mutation CreateDinoAiAgentDefinition($input: CreateDinoAiAgentDefinitionInput!) {
createDinoAiAgentDefinition(input: $input) {
dinoAiAgentDefinition {
slug
name
source
version
role
goal
}
}
}Variables
{
"input": {
"name": "string",
"spec": {
"role": "string",
"goal": "string",
"backstory": "string"
}
}
}Response
{
"data": {
"createDinoAiAgentDefinition": {
"dinoAiAgentDefinition": {
"slug": "string",
"name": "string",
"source": "YAML",
"version": 1,
"role": "string",
"goal": "string"
}
}
}
}