DigitalOcean-public.v2-new_GradientAI Platform
Update an Agent
To update an agent, send a PUT request to /v2/gen-ai/agents/{uuid}. The response body is a JSON object containing the agent.
put/v2/gen-ai/agents/{uuid}
Path parameters
uuidstring required
Unique agent id
Request body
Example request
{
"agent_log_insights_enabled": true,
"anthropic_key_uuid": "\"12345678-1234-1234-1234-123456789012\"",
"conversation_logs_enabled": true,
"description": "\"My Agent Description\"",
"instruction": "\"You are an agent who thinks deeply about the world\"",
"k": 5,
"max_tokens": 100,
"model_uuid": "\"12345678-1234-1234-1234-123456789012\"",
"name": "\"My New Agent Name\"",
"open_ai_key_uuid": "\"12345678-1234-1234-1234-123456789012\"",
"project_id": "\"12345678-1234-1234-1234-123456789012\"",
"provide_citations": true,
"retrieval_method": "RETRIEVAL_METHOD_UNKNOWN",
"tags": [
"example string"
],
"temperature": 0.7,
"top_p": 0.9,
"uuid": "\"12345678-1234-1234-1234-123456789012\""
}Response
A successful response.