Skip to main content
POST
/
agents
/
name
/
{agent_name}
/
rpc
{
  "result": [
    {
      "task_id": "<string>",
      "content": {
        "author": "user",
        "content": "<string>",
        "type": "text",
        "style": "static",
        "format": "plain",
        "attachments": [
          {
            "file_id": "<string>",
            "name": "<string>",
            "size": 123,
            "type": "<string>"
          }
        ]
      },
      "id": "<string>",
      "streaming_status": "IN_PROGRESS",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "jsonrpc": "2.0",
  "error": "<unknown>",
  "id": 123
}

Path Parameters

agent_name
string
required

Body

application/json
method
enum<string>
required
Available options:
event/send,
task/create,
message/send,
task/cancel
params
CreateTaskRequest · object
required

The parameters for the agent RPC request

jsonrpc
string
default:2.0
Allowed value: "2.0"
id

Response

Successful Response

result
TaskMessage · object
required

Represents a message in the agent system.

This entity is used to store messages in MongoDB, with each message associated with a specific task.

jsonrpc
string
default:2.0
Allowed value: "2.0"
error
unknown
id