Skip to content

Instantly share code, notes, and snippets.

@thfrei
Last active May 6, 2016 14:06
Show Gist options
  • Save thfrei/0e0f71cc829c7a6002d3ffe7d6c3e2bc to your computer and use it in GitHub Desktop.
Save thfrei/0e0f71cc829c7a6002d3ffe7d6c3e2bc to your computer and use it in GitHub Desktop.
Communicative Act Library suggestion for eve agents: Contract Net Interaction Protocol (call for proposal)
// Suggestion for a communicatve act library for agent communication in Javascript.
// Initiator:
agent
.communication('cfp', 'initiator')
.recipient(adressOfResponder)
.cfp(function)
.onRefuse(function)
.onPropose(function)
.onFailure(function)
.onInformDone(function)
.onInformResult(function)
// Responder
agent
.communication('cfp', 'responder')
.cfp(function)
.onRejectProposal(function)
.onAcceptProposal(function)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment