🚀 Share how you're building agents for a chance to win LangChain swag!
curl --request POST \
--url https://api.example.com/a2a/{assistant_id} \
--header 'Accept: <accept>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"params": {
"message": {
"parts": [
{
"text": "<string>"
}
],
"messageId": "<string>"
},
"thread": {
"threadId": "<string>"
}
}
}
'{
"id": "<string>",
"result": {},
"error": {
"code": 123,
"message": "<string>"
}
}Communicate with an assistant using the Agent-to-Agent Protocol. Sends a JSON-RPC 2.0 message to the assistant.
jsonrpc, id, method, and optional params.Supported Methods:
message/send: Send a message to the assistanttasks/get: Get the status and result of a taskNotes:
curl --request POST \
--url https://api.example.com/a2a/{assistant_id} \
--header 'Accept: <accept>' \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"params": {
"message": {
"parts": [
{
"text": "<string>"
}
],
"messageId": "<string>"
},
"thread": {
"threadId": "<string>"
}
}
}
'{
"id": "<string>",
"result": {},
"error": {
"code": 123,
"message": "<string>"
}
}Documentation Index
Fetch the complete documentation index at: https://langchain-5e9cc07a-preview-openap-1765292790-ae6c60d.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Must be application/json
application/json The ID of the assistant to communicate with
JSON-RPC version
2.0 Request identifier
The method to invoke
message/send, tasks/get Method parameters
Show child attributes
Was this page helpful?