DigitalOcean-public.v2-new_GradientAI Platform
Create an Agent
To create a new agent, send a POST request to /v2/gen-ai/agents. The response body contains a JSON object with the newly created agent object.
post/v2/gen-ai/agents
Request body
Example request
{
"anthropic_key_uuid": "\"12345678-1234-1234-1234-123456789012\"",
"description": "\"My Agent Description\"",
"instruction": "\"You are an agent who thinks deeply about the world\"",
"knowledge_base_uuid": [
"example string"
],
"model_uuid": "\"12345678-1234-1234-1234-123456789012\"",
"name": "\"My Agent\"",
"open_ai_key_uuid": "\"12345678-1234-1234-1234-123456789012\"",
"project_id": "\"12345678-1234-1234-1234-123456789012\"",
"region": "\"tor1\"",
"tags": [
"example string"
]
}Response
A successful response.