cURL
curl --request POST \ --url https://api.example.com/agents/name/{agent_name}/rpc \ --header 'Content-Type: application/json' \ --data ' { "method": "event/send", "params": { "name": "<string>", "params": {} }, "jsonrpc": "2.0", "id": 123 } '
{ "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 name.
event/send
task/create
message/send
task/cancel
The parameters for the agent RPC request
Show child attributes
"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.