Skip to content

action-ai-institute/ai-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ai-stack

Submodule Description
comm Inter-agent event system
knowledge_base
learning_reasoning
strategy_planning
agent_agent
human_agent

comm

Local RabbitMQ instance:

docker run -p 5672:5672 -d --hostname action-rabbit --name action-rabbit rabbitmq:3

Example usage:

from action.comm import Comm

# Use local or global instance url
comm = Comm("amqp://localhost:5672")

comm.subscribe("agent_a", lambda msg: print(msg))
comm.subscribe("agent_b", lambda msg: print(msg["foo"]))
comm.publish("agent_a", "bar")
comm.publish("agent_b", {"foo": "bar"})

comm.disconnect()

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages