{ "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 }
Handle JSON-RPC requests for an agent by its unique ID.
event/send
task/create
message/send
task/cancel
The parameters for the agent RPC request
Show child attributes
The name of the task to create
The parameters for the task
"2.0"
Successful Response
Represents a message in the agent system.
This entity is used to store messages in MongoDB, with each message associated with a specific task.
ID of the task this message belongs to
The content of the message. This content is not OpenAI compatible. These are messages that are meant to be displayed to the user.
The role of the messages author, in this case system, user, assistant, or tool.
system
user
assistant
tool
agent
The contents of the text message.
The type of the message, in this case text.
text
"text"
The style of the message. This is used by the client to determine how to display the message.
static
active
The format of the message. This is used by the client to determine how to display the message.
markdown
plain
code
Optional list of file attachments with structured metadata.
The unique ID of the attached file
The name of the file
The size of the file in bytes
The MIME type or content type of the file
The task message's unique id
IN_PROGRESS
DONE
The timestamp when the message was created
The timestamp when the message was last updated