Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agent (holder) to controller Messaging Protocol #27

Open
cvarjao opened this issue Nov 2, 2023 · 0 comments
Open

Agent (holder) to controller Messaging Protocol #27

cvarjao opened this issue Nov 2, 2023 · 0 comments

Comments

@cvarjao
Copy link

cvarjao commented Nov 2, 2023

Background

There are a number of formal formalized protocols that are intended for agent-to-agent (e.g.: trust ping, coin flip, action menu). Thos protocols are processes at the agent level with some assistance from the controller.

There is a need for creating for business specific protocols, or even as a way to develop, experiment, and validate new protocols.

This protocol is intended to be implemented by the controller, and only a pass through on the agent. This is very similar to the basic message protocol with the main difference being that this exchange structured data, and it is not primarily intended for user interaction/consumption. It is primarily intended for the controller to process the messages.

Request (option 1)

{
    "@id": "123456780",
    "@type": "https://didcomm.org/rpc/1.0/request",
    "data": {
        {
            "@type": "https://didcomm.org/trust_ping/1.0/ping",
             "data":{
                "comment": "Hi. Are you listening?",
                "response_requested": true
             }
        }
     }
}

Request (option 2)

{
    "@id": "123456780",
    "@type": "https://didcomm.org/rpc/1.0/request",
    "@subtype": "https://didcomm.org/trust_ping/1.0/ping",
    "data": {
          "comment": "Hi. Are you listening?",
          "response_requested": true
     }
}

Response

{
    "@id": "123456780",
    "@type": "https://didcomm.org/rpc/1.0/response",
    "data": {
        {
            "@type": "https://didcomm.org/trust_ping/1.0/ping_response",
             "data":{
                "comment": "Hi yourself. I'm here."
             }
        }
     }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant