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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 Windows x86-64

robocorp_action_server-0.0.18-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.12 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

robocorp_action_server-0.0.18-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.18-cp311-cp311-win_amd64.whl (8.9 MB view details)

Uploaded CPython 3.11 Windows x86-64

robocorp_action_server-0.0.18-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.11 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

robocorp_action_server-0.0.18-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.18-cp310-cp310-win_amd64.whl (8.9 MB view details)

Uploaded CPython 3.10 Windows x86-64

robocorp_action_server-0.0.18-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.10 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

robocorp_action_server-0.0.18-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.18.tar.gz.

File metadata

  • Download URL: robocorp_action_server-0.0.18.tar.gz
  • Upload date:
  • Size: 321.6 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.18.tar.gz
Algorithm Hash digest
SHA256 320a680012b5f80f1135e382369439b5d68734d0e05057be32e6b12e5cdcba32
MD5 1fcddb57c155d2f70d12f6e2d9cb4962
BLAKE2b-256 86a6c3a8f61a3760b6e7e51f70afca6258d2215d39306dc76116b5de2b9894ef

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.18-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 8b616770f4f2a380bc6501e11806d58df40f4a0e16c37b06f85a4cb1c69b66b7
MD5 6c39fdf3b1c124fb0d07d5f61c767401
BLAKE2b-256 30c16b01f6473388df5209527252cb345deab77a2bb28b8fea64c5b1a5a53540

See more details on using hashes here.

Provenance

File details

Details for the file robocorp_action_server-0.0.18-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.18-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 22cc556af78a80cd9345214e6fa7867e4025ce5c87b9064d9e7291a52104dd97
MD5 5edde24a54568dd93237a53295a9c86d
BLAKE2b-256 d80d5a1bfa4c7ea739e886dae9db482526c0f01dc570a506015542c33ed1d2a8

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.18-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 8e266f43f1099df990c16ea8bdc53700328fbb291fd5010e492ce5f6f10d0e47
MD5 66e865ef3bf0f3f8e3fd637210000370
BLAKE2b-256 2e02f5ecd2782d8a37017f3d871d224de8b9179907b0c3bc8722c03b398e55ba

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.18-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b8774e629c442069fc9a7beba2a5921f87bcf64d3d2e97e3771e2a2e5bbb24d1
MD5 4b3468a610fc1088664b93de14493e47
BLAKE2b-256 5e0a6125cb7af6dcf1ab48da813e27beb43ceca3bc6e4d017dbf00452f57ba29

See more details on using hashes here.

Provenance

File details

Details for the file robocorp_action_server-0.0.18-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.18-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e70db92e1859a651f6d67def45b63a1a5cd05222fcc2391ad785ead461100a4e
MD5 3b7a0ce82b7bac21042b54cdc944ee70
BLAKE2b-256 c42f5db477d8ba2cade0604c2d496e7b4f825b1db60c6773771070190928f496

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.18-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 208d21e53e1117c8992fe662d1243741042d78f15a08aba0347987cfff151827
MD5 01b9ea4fe34cb552a02b30937675dafd
BLAKE2b-256 fb4021099c7ddc4a6ac491fb12285d0689c1f4fa3c1578becb5eb2fb1b9d929e

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.18-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c3b4bf467f289d3d32c4daf78886be38a2303550ffaef3033d926e01a50d0399
MD5 f760e8af1af3bc0457e29809d47adef9
BLAKE2b-256 b1ea6fc3f7a8b51f2fb75f1962fc00416ee24e1e56d77d8090475ca299abf980

See more details on using hashes here.

Provenance

File details

Details for the file robocorp_action_server-0.0.18-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.18-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2f28315f46d405ca6d1b73c3362ceb1fd3eadec6edcebfeec119b479902e2fd2
MD5 2afba8280ad47304de9c4c20c6e2c7a6
BLAKE2b-256 461023f62b9e44f8fe61faa4e7bd5700076ff8250848ae06e58cec597f0ba3a4

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.18-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 63709f533917cb528e3032ce1b58124e2935e413af46db6a68725e5a04405dc7
MD5 38c406b58fe0afc7a5e1fc2adbf6e6bb
BLAKE2b-256 166fb8aa0c54c7a899029f91378ac1814a9d2529e1d53257d5268700258739db

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