POST /v2/gen-ai/agents/{agent_uuid}/functions

To create a function route for an agent, send a POST request to /v2/gen-ai/agents/{agent_uuid}/functions.

Servers

Path parameters

Name Type Required Description
agent_uuid String Yes

Agent id

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
function_name String No

Function name

description String No

Function description

output_schema Object No

Describe the output schema for the function so the agent handle its response

input_schema Object No

Describe the input schema for the function so the agent may call it

faas_namespace String No

The namespace of the function in the DigitalOcean functions platform

faas_name String No

The name of the function in the DigitalOcean functions platform

agent_uuid String No

Agent id

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.