Skip to main content

Robocorp local task server

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.17.tar.gz (321.3 kB view details)

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 Windows x86-64

robocorp_action_server-0.0.17-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (10.4 MB view details)

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

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

Uploaded CPython 3.12 macOS 11.0+ x86-64

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

Uploaded CPython 3.11 Windows x86-64

robocorp_action_server-0.0.17-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (10.4 MB view details)

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

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

Uploaded CPython 3.11 macOS 11.0+ x86-64

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

Uploaded CPython 3.10 Windows x86-64

robocorp_action_server-0.0.17-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (10.4 MB view details)

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

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

Uploaded CPython 3.10 macOS 11.0+ x86-64

File details

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

File metadata

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

File hashes

Hashes for robocorp_action_server-0.0.17.tar.gz
Algorithm Hash digest
SHA256 594a2fd03ca059b7926cf8425b940cfd95407e3a3d96555f25429d9961187d2e
MD5 0c4b200f3d6bfaeade47411f35dc561e
BLAKE2b-256 d26582f916db0153ceff93a8a19eabefd57b86ec89ff5b122946df94cdd5d4bf

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.17-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3234264933fbe23aea898b05e734bffed1cc8f4e9d8194a6c41e97cb44bb6ec3
MD5 01135a949f0edcd9fd2df30b14570f1f
BLAKE2b-256 5734aca5e1d559b879dedc73df7965d1e5886040fa4466f504ea0056aea6cf08

See more details on using hashes here.

Provenance

File details

Details for the file robocorp_action_server-0.0.17-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.17-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 601c91824ea03902b1263724d04f9f101cd9c73d27e57b19ef081f3a6c7cdddc
MD5 7595308674a937ed7b317b4c415456b9
BLAKE2b-256 0587b5d8d4dcd514490afbe8cac73f8e35d8830389451944a0d4751fff98e73f

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.17-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 57aff08a514626fc1f79d63903aed9f7c25f6f3f3629270423ffa5e3e2a4faa4
MD5 4235a078ff9df13995108c8d947b87a3
BLAKE2b-256 d4e13d9ee5e71d99d053ddc7a6cf0783a37c94fedcc7a9ec944a884f1f5ad3ae

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.17-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8e0bf3b76a6692db17f5be26b4cdd2e824e5f53dd8e8055c1c4aa70f16e2c8f4
MD5 70c2bf8e1a4f939c623698801b815cfd
BLAKE2b-256 576a0b88220742d8db0dbb7629ce894e0226049540015d1d710f011228dede5b

See more details on using hashes here.

Provenance

File details

Details for the file robocorp_action_server-0.0.17-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.17-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3e9f1b664984dbda397c592e0410fa9ff43b6eb1c53c075d7ff5b3ee3f8eeb6b
MD5 a7b4d8cab11733d227293393c8dc0e7e
BLAKE2b-256 98b9255d5287daa0042ad8566fa4a581f6a9352c7a2c7f3efbef30d0575ce656

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.17-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 41485567876013ffb28be64d6eb02844ba5489a992f9b11f7aa8a4f8127bc33e
MD5 87739f82dd8a3adb85c430ec4f11ce11
BLAKE2b-256 cd36af44dc6399884b3748ad7ee35d3aa07d9f821363ea508ee078c885a55d8e

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.17-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 27877f83e10fb6e69b747730f7f8d34d585f57f9c43297daa66a6c6c4d30aa06
MD5 3b1b5c39355c168b18a8b909891b92c1
BLAKE2b-256 921f9ba7f50b24f4c1043da632e2822746a726f6e350e74483abd68590623393

See more details on using hashes here.

Provenance

File details

Details for the file robocorp_action_server-0.0.17-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.17-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 cdcd4e3cc762ed6c2e4861f0f4589fdbec41b086e3561cf88d3902b5c794c03d
MD5 8d168b5981d4a5d96361b1231881ad4d
BLAKE2b-256 1f4a86636b5304395cf196aa777fb6010f762d7b0e2bf208793d0d4cb74c37c1

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.17-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 29ceb741f2f1f1a64757a560e782a8fb935256d954a4232776210dd4e3661e1f
MD5 1d278af5800805ac65c5ede8e87a56ea
BLAKE2b-256 39ae7f48b6e0fe456dc25f0f888a866fff06e1d6e5c7522803a7f1e7bf416a53

See more details on using hashes here.

Provenance

Supported by

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