Skip to main content
POST
/
agui
Run Agent
curl --request POST \
  --url https://api.example.com/agui \
  --header 'Content-Type: application/json' \
  --data '
{
  "threadId": "<string>",
  "runId": "<string>",
  "state": "<unknown>",
  "messages": [
    {
      "id": "<string>",
      "role": "<string>",
      "content": "<string>",
      "name": "<string>"
    }
  ],
  "tools": [
    {
      "name": "<string>",
      "description": "<string>",
      "parameters": "<unknown>"
    }
  ],
  "context": [
    {
      "description": "<string>",
      "value": "<string>"
    }
  ],
  "forwardedProps": "<unknown>"
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Body

application/json

Input for running an agent.

threadId
string
required
runId
string
required
state
any
required
messages
(DeveloperMessage · object | SystemMessage · object | AssistantMessage · object | UserMessage · object | ToolMessage · object)[]
required

A developer message.

tools
Tool · object[]
required
context
Context · object[]
required
forwardedProps
any
required

Response

Successful Response