GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - automaticmode/aw_python_sample_agent: ActiveWorkflow remote agent example in Python

BranchesTags
Open more actions menu

Latest commit

 

History

9 Commits
9 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
main.py
main.py
 
 
requirements.txt
requirements.txt
 
 

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/"

If using Docker to run ActiveWorkflow, you'll need to use the -e parameter to docker run to pass REMOTE_AGENT_URL through to ActiveWorkflow. The address in the URL will also have to be updated to match where the agent is running (127.0.0.1 is unlikely to be correct). Docker provides host.docker.internal for the host IP. Thus, you could run:

docker run -e REMOTE_AGENT_URL="http://host.docker.internal:5000/" -p 3000:3000 --rm automaticmode/active_workflow

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

Topics

agentautomationexamplepythonworkflow

Resources

Readme
MIT license
Activity
Custom properties

Stars

5 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.