DigitalOcean-public.v2-new_GradientAI Platform
Add Function Route to an Agent
To create a function route for an agent, send a POST request to /v2/gen-ai/agents/{agent_uuid}/functions.
post/v2/gen-ai/agents/{agent_uuid}/functions
Path parameters
agent_uuidstring required
Agent id
Request body
Example request
{
"agent_uuid": "\"12345678-1234-1234-1234-123456789012\"",
"description": "\"My Function Description\"",
"faas_name": "\"my-function\"",
"faas_namespace": "\"default\"",
"function_name": "\"My Function\""
}Response
A successful response.