POST
/
agent
curl --request POST \
  --url https://api.drymerge.com/agent \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "prompt": "<string>",
  "agent": {
    "type": "<string>",
    "organization": "<string>",
    "namespace": "<string>",
    "name": "<string>",
    "isolation": "<string>"
  },
  "history": [
    {
      "text": "<string>",
      "sender": "user"
    }
  ]
}'
{
  "decision": {
    "Operate": {
      "data": {},
      "ui": [
        {
          "Form": {
            "id": {
              "type": "<string>",
              "organization": "<string>",
              "namespace": "<string>",
              "name": "<string>",
              "isolation": "<string>"
            },
            "variant": "Template",
            "schema": {}
          },
          "Auth": [
            {
              "name": "<string>",
              "declared": true,
              "used": true
            }
          ],
          "Confirmation": {
            "id": {
              "type": "<string>",
              "organization": "<string>",
              "namespace": "<string>",
              "name": "<string>",
              "isolation": "<string>"
            },
            "variant": "Template",
            "schema": {}
          },
          "Display": [
            {
              "id": {
                "type": "<string>",
                "organization": "<string>",
                "namespace": "<string>",
                "name": "<string>",
                "isolation": "<string>"
              },
              "description": "<string>",
              "tags": [
                "<string>"
              ]
            }
          ],
          "Update": {
            "message": "<string>",
            "theme": "Success"
          }
        }
      ]
    },
    "Yield": {
      "ui": [
        {
          "Form": {
            "id": {
              "type": "<string>",
              "organization": "<string>",
              "namespace": "<string>",
              "name": "<string>",
              "isolation": "<string>"
            },
            "variant": "Template",
            "schema": {}
          },
          "Auth": [
            {
              "name": "<string>",
              "declared": true,
              "used": true
            }
          ],
          "Confirmation": {
            "id": {
              "type": "<string>",
              "organization": "<string>",
              "namespace": "<string>",
              "name": "<string>",
              "isolation": "<string>"
            },
            "variant": "Template",
            "schema": {}
          },
          "Display": [
            {
              "id": {
                "type": "<string>",
                "organization": "<string>",
                "namespace": "<string>",
                "name": "<string>",
                "isolation": "<string>"
              },
              "description": "<string>",
              "tags": [
                "<string>"
              ]
            }
          ],
          "Update": {
            "message": "<string>",
            "theme": "Success"
          }
        }
      ]
    },
    "Skip": "<string>"
  }
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
prompt
string

The user's most recent message.

agent
object

An identity is a unique identifier for an entity.

history
object[]

The history of the chat up to this point.

Response

200 - application/json
decision
object