This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Client-Agent
You can call your agents from within an agent. Here is how it works:
client-agent example
Check out the client-agent folder on the repository.
- Make sure you have AMQP setup properly (simpleagent example Testing Nanite)
- run a simple agent (‘nanite-agent —token fred’) in examples/simpleagent
- run ‘nanite-agent —token client’ in this folder
- run ./cli.rb
What’s going on:
The cli.rb mapper sends a request to the client agent, asking for the delegate method:
Nanite.request("/client/delegate", ["/simple/echo", "echo said hello world!"]) do |res|
...
Client agent receives the request and make another request to the nanite we sent as payload (“/simple/echo”)
request(nanite, payload) do |res| ...
And finally, simple agent receives and echo it back to client and then to the mapper.
Obs: “push” is only avaiable on the repository. (sep/09)






