{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"To create a function route for an agent, send a POST request to `/v2/gen-ai/agents/{agent_uuid}/functions`.","properties":{"path":{"type":"object","properties":{"agent_uuid":{"type":"string","examples":["\"123e4567-e89b-12d3-a456-426614174000\""],"description":"Agent id"}},"required":["agent_uuid"],"additionalProperties":false},"body":{"$ref":"#/definitions/apiLinkAgentFunctionInputPublic"}},"required":["path"],"additionalProperties":false,"definitions":{"apiLinkAgentFunctionInputPublic":{"description":"Information for a agent function link","properties":{"agent_uuid":{"description":"Agent id","type":"string","examples":["\"12345678-1234-1234-1234-123456789012\""]},"description":{"description":"Function description","type":"string","examples":["\"My Function Description\""]},"faas_name":{"description":"The name of the function in the DigitalOcean functions platform","type":"string","examples":["\"my-function\""]},"faas_namespace":{"description":"The namespace of the function in the DigitalOcean functions platform","type":"string","examples":["\"default\""]},"function_name":{"description":"Function name","type":"string","examples":["\"My Function\""]},"input_schema":{"description":"Describe the input schema for the function so the agent may call it","type":"object"},"output_schema":{"description":"Describe the output schema for the function so the agent handle its response","type":"object"}},"type":"object"}}},"name":"Add Function Route to an Agent","id":"digitalocean.genai_attach_agent_function","example":{"path":{"agent_uuid":"\"123e4567-e89b-12d3-a456-426614174000\""}},"maxRequests":1,"summary":false}}