Skip to content

raspberry-lef/aw_python_sample_agent

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ActiveWorkflow Agent Example in Python

This project implements a simple example agent for ActiveWorkflow. The agent is implemented in Python and uses the remote agent API.

This agent doesn't do anything useful but it does demonstrate the features of ActiveWorkflow's Remote Agent API.

Quick Start

This agent is intended to be used as part of ActiveWorkflow. To get started with ActiveWorkflow please see the ActiveWorkflow documentation.

Also, please make sure you run this agent before starting ActiveWorkflow (you may want to use virtualenv):

git clone https://github.com/automaticmode/aw_python_sample_agent
cd aw_python_sample_agent
#virtualenv .venv && source .venv/bin/activate
pip install -r requirements.txt
python main.py

Note the URL of the agent's server (usually it is http://127.0.0.1:5000/), and set it as an environment variable for ActiveWorkflow:

export REMOTE_AGENT_URL="http://127.0.0.1:5000/"

Now you can start ActiveWorkflow. You should be able to create instances of this agent (named "Python Test Agent"). Run it and send messages to it.

Please note that this project is just a minimal example. Consider using a proper project structure when developing your own ActiveWorkflow agents.

About

ActiveWorkflow remote agent example in Python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 100.0%