paradime.admin.dinoai manages a workspace’s DinoAI agent definitions, which agents may delegate to which, and the workspace’s DinoAI settings. To run agents, use paradime.dinoai_agents. For the GraphQL operations, see DinoAI.
Prerequisites
- These operations are available on every plan.
- Your API key needs the DinoAI admin capability group. To read an agent’s
environment, the key also needs Environment admin. - The admin client of the
paradime-iopackage. See Admin client.
Agents defined in YAML under
.dinoai/agents/ live in the repository. update_agent refuses them with AdminConflictException, and create_agent refuses a slug that one of them holds. Change them in the repository and run sync_agents_from_code.List agents
Iterates over the workspace’s DinoAI agent definitions, from YAML and from the UI.Get an agent
Reads one DinoAI agent definition.Create an agent
Creates a DinoAI agent definition. With aslug, sending the same input again returns the stored agent and changes nothing. A slug that an agent with other settings holds raises AdminConflictException. Without a slug, every call creates another agent.
What the agent is and may do. A field you leave out is unset on the agent. See Types.
The agent’s slug: lowercase letters, digits and single hyphens. Generated from the name when left out.
Update an agent
Replaces an agent definition’s name, spec and Slack bot fields, and keeps its delegates. A spec field or Slack bot field that you leave out is cleared. Sending the same input again changes nothing. A slug that no agent holds raisesAdminNotFoundException.
Delete an agent
Deletes a DinoAI agent definition. An agent that another agent delegates to can’t be deleted.Set the agent graph
Replaces every delegation between the workspace’s agents. The API refuses a cycle.(from_slug, to_slug) pairs: the first agent may delegate to the second.Get DinoAI settings
Reads the workspace’s DinoAI settings.The settings:
sql_query_tool_enabled, whether DinoAI may run SQL queries against the warehouse.Set DinoAI settings
Changes the workspace’s DinoAI settings. A setting you leave out keeps its value.Sync agents from code
Starts a job that imports the agent definitions committed under.dinoai/agents/, by slug. It creates agents and replaces the agents with the same slug, even agents created in Paradime or through the API. It never deletes an agent.
The job. Wait for it with
admin.jobs.wait. Its result is a DinoAiAgentSyncResult, which counts the agents the sync added, updated and skipped.Types
Import the models and enums fromparadime.apis.admin.dinoai.types.