Skip to main content

Robocorp local task server

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

robocorp-action-server

Robocorp Action Server is a Python framework designed to simplify the deployment of actions (AI or otherwise).

An action in this case is defined as a Python function (which has inputs/outputs defined), which is served by the Robocorp Action Server.

The Robocorp Action Server automatically generates an OpenAPI spec for your Python code, enabling different AI/LLM Agents to understand and call your Action. It also manages the Action lifecycle and provides full traceability of what happened during runs.

1. Install Action Server

Action Server is available as a stand-alone fully signed executable and via pip install robocorp-action-server.

We recommend the executable to prevent confusion in case you have multiple/crowded Python environments, etc.

For macOS

# Install Robocorp Action Server
brew update
brew install robocorp/tools/action-server 

For Windows

# Download Robocorp Action Server
curl -o action-server.exe https://downloads.robocorp.com/action-server/releases/latest/windows64/action-server.exe

# Add to PATH or move to a folder that is in PATH
setx PATH=%PATH%;%CD%

For Linux

# Download Robocorp Action Server
curl -o action-server https://downloads.robocorp.com/action-server/releases/latest/linux64/action-server
chmod a+x action-server

# Add to PATH or move to a folder that is in PATH
sudo mv action-server /usr/local/bin/

2. Run your first Action

# Bootstrap a new project using this template.
# You'll be prompted for the name of the project (directory):
action-server new

# Start Action Server 
cd my-project
action-server start --expose

👉 You should now have an Action Server running locally at: http://localhost:8080, so open that in your browser and the web UI will guide you further.

👉 Using the --expose -flag, you also get a public internet-facing URL (something like "https://twently-cuddly-dinosaurs.robocorp.link") and the related token. These are the details that you need to configure your AI Agent to have access to your Action

What do you need in your Action Package

An Action Package is currently defined as a local folder that contains at least one Python file containing an action entry point (a Python function marked with @action -decorator from robocorp.actions).

The conda.yaml file is required for specifying the Python environment and dependencies for your Action (RCC will be used to automatically bootstrap it and keep it updated given the conda.yaml contents).

Note: the conda.yaml is optional if the action server is not being used as a standalone (i.e.: if it was pip-installed it can use the same python environment where it's installed).

See: More information on conda.yaml.

A robot.yaml used by RCC is not required, but it may be useful to have it to manually run the actions out of the Robocorp Action Server.
We recommend checking out Robocorp Code -extension for VS Code.

Bootstrapping a new Action

Start new projects with:

action-server new

Note: the action-server executable should be automatically added to your python installation after pip install robocorp-action-server, but if for some reason it wasn't pip-installed, it's also possible to use python -m robocorp.action_server instead of action-server.

After creating the project, it's possible to serve the actions under the current directory with:

action-server start

For example: When running action-server start, the action server will scan for existing actions under the current directory, and it'll start serving those.

After it's started, it's possible to access the following URLs:

  • /index.html: UI for the Action Server.
  • /openapi.json: Provides the openapi spec for the action server.
  • /docs: Provides access to the APIs available in the server and a UI to test it.

API Reference

Information on specific functions or classes: robocorp.action-server

Changelog

A list of releases and corresponding changes can be found in the changelog.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robocorp_action_server-0.0.20.tar.gz (322.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

robocorp_action_server-0.0.20-cp312-cp312-win_amd64.whl (8.9 MB view details)

Uploaded CPython 3.12Windows x86-64

robocorp_action_server-0.0.20-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (10.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

robocorp_action_server-0.0.20-cp312-cp312-macosx_11_0_x86_64.whl (15.2 MB view details)

Uploaded CPython 3.12macOS 11.0+ x86-64

robocorp_action_server-0.0.20-cp311-cp311-win_amd64.whl (8.9 MB view details)

Uploaded CPython 3.11Windows x86-64

robocorp_action_server-0.0.20-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (10.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

robocorp_action_server-0.0.20-cp311-cp311-macosx_11_0_x86_64.whl (15.2 MB view details)

Uploaded CPython 3.11macOS 11.0+ x86-64

robocorp_action_server-0.0.20-cp310-cp310-win_amd64.whl (8.9 MB view details)

Uploaded CPython 3.10Windows x86-64

robocorp_action_server-0.0.20-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (10.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

robocorp_action_server-0.0.20-cp310-cp310-macosx_11_0_x86_64.whl (15.2 MB view details)

Uploaded CPython 3.10macOS 11.0+ x86-64

File details

Details for the file robocorp_action_server-0.0.20.tar.gz.

File metadata

  • Download URL: robocorp_action_server-0.0.20.tar.gz
  • Upload date:
  • Size: 322.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1019-azure

File hashes

Hashes for robocorp_action_server-0.0.20.tar.gz
Algorithm Hash digest
SHA256 065b72aa8dc4b3d3c42585d7d9542af2e21b9685c218b4f385ea3a72fa51b781
MD5 4eea942724aac216766a7cb0f6dfa01d
BLAKE2b-256 edbea036e44e6673af37ebbe22d57bfc84ff8971da4269dd735a860169b20712

See more details on using hashes here.

File details

Details for the file robocorp_action_server-0.0.20-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for robocorp_action_server-0.0.20-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 1a7503135d4c566a7e2b8d9645912f1f4646f8409585c45ce4e9d6720935e5cf
MD5 e35ab7d41f51ff2db93c46f23e84d8a1
BLAKE2b-256 645bbfb72bb1723d07665637c047ea2fb8d20bf898211f650906864eb5cf243b

See more details on using hashes here.

File details

Details for the file robocorp_action_server-0.0.20-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for robocorp_action_server-0.0.20-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1ccd668cfac82420952d04029d0c13cecc9005916434af90eadcd8725283c3ec
MD5 fef12d3276e20e9f9eef9ead9d919386
BLAKE2b-256 fa36214c0ef164fe6e6e8e112ede4ac8198b6b8504704bdff311dd179d00e230

See more details on using hashes here.

File details

Details for the file robocorp_action_server-0.0.20-cp312-cp312-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for robocorp_action_server-0.0.20-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 bf5916999c1dd1260b25e425502d7353c3f7b2f3a3fa47ce958dafe0c8c3fb11
MD5 7bd72418a7bea9a2b84405cc661faa46
BLAKE2b-256 11ae9f795f79e1da41556c6fced4a40ab618d6a4cb5c1f4309b282245007170c

See more details on using hashes here.

File details

Details for the file robocorp_action_server-0.0.20-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for robocorp_action_server-0.0.20-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 0707e223c5a80d277d72c76d3552b3243d6da708959891bb4c03e1109363097e
MD5 3d3934de9c9c0381adcf070b21bef03a
BLAKE2b-256 7d596868b3df7643565bb0ee80ec787fff0982b1271fc257ed03aedde8d8a060

See more details on using hashes here.

File details

Details for the file robocorp_action_server-0.0.20-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for robocorp_action_server-0.0.20-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ddcf005b9c53edee3eb5de279f654a9bcb9f9dffe2c107ea205c011bbdf35ed3
MD5 0672ef017b31cb0ce8ecaa4094b6960c
BLAKE2b-256 38b3a25583bb0448bd5cf3ebf1063ef742e4492e94897a78d7bec0e207ea12e1

See more details on using hashes here.

File details

Details for the file robocorp_action_server-0.0.20-cp311-cp311-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for robocorp_action_server-0.0.20-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 cbddd6a613bfb6652665e49f2a4df21d68cc787a61bd2bf0f17ff4570f5b6567
MD5 31b0589afdacde05d8f15e297039cfe3
BLAKE2b-256 6efe7d5316d400f011094887b3a69edb094c9b046c44124eb39fb92da76c5cf4

See more details on using hashes here.

File details

Details for the file robocorp_action_server-0.0.20-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for robocorp_action_server-0.0.20-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 147b3972fc7287a0f8d3ce0431fdb0e47f79fe7d7fcf6eaa9036c2964eb310ae
MD5 a5244992a850e88c281eb3e84d24326c
BLAKE2b-256 c8682138d4deade43b809e64f210bfa925a98b3cf7ea6ef331f877c31c612513

See more details on using hashes here.

File details

Details for the file robocorp_action_server-0.0.20-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for robocorp_action_server-0.0.20-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4434995b72aefe78ad142badfa0592c9a5436daef12ca3b8183090ba6244d8cd
MD5 d823c7f49d2b9401488127059e5bba2f
BLAKE2b-256 869941142add9cc072700b0d587dff0a036996853205f25cb101f43aeee33387

See more details on using hashes here.

File details

Details for the file robocorp_action_server-0.0.20-cp310-cp310-macosx_11_0_x86_64.whl.

File metadata

File hashes

Hashes for robocorp_action_server-0.0.20-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 6c6d54a293c39296decca53002b4015c15901d97f7b879d7f40ea3564c4e91f6
MD5 6c655bb4dbd79afb373c795794f35397
BLAKE2b-256 de4edc0c732ad9dc7b216bb840b6cf1549b1f5b9032116526ba02717659d4020

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page