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 theRobocorp 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for robocorp_action_server-0.0.19.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ab51d3eb20cb3580689f02166dde232fce593867e9d04d1dcf4962f81f1cf5b |
|
MD5 | 777a178ddaac8d4e78c4d26cac161aee |
|
BLAKE2b-256 | 65fdf9505d086ded26fb57c6a205eb28a10f885931b063575d3eca578b6df6ec |
Hashes for robocorp_action_server-0.0.19-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b5ae08291956bed07aa78d87244a76f98b8e387371dd468f7578608c41ae8d1 |
|
MD5 | c91520020a5493479ff61510884a26ae |
|
BLAKE2b-256 | df151f3cfddce39283735cafedc2d94518e48b1cf637dc949c9e8cc92f4c0962 |
Hashes for robocorp_action_server-0.0.19-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eeac34050cbf267e3cafd17b7a0fbedcc7bdcb7ec7974dc95df2a4dd01d9faf |
|
MD5 | 0316e3394176a4942bceb2c4d90420f3 |
|
BLAKE2b-256 | 9588bd681db522e11575cb5cae64e12cbfdfcf881a47d5c1ac6db6ac001afc48 |
Hashes for robocorp_action_server-0.0.19-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9411ef51a68c90d719ad1f192ce81c50a3040befba046dfc63669c65afafbb96 |
|
MD5 | 1903a74a9b0f4f1315631e2912ee4cfb |
|
BLAKE2b-256 | a686eb54cd4a8ac05095b5110bfff13a26983cd7fc0385e4b212cd58c8ee3268 |
Hashes for robocorp_action_server-0.0.19-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfea16e79ec3b996065c1671589a5e97e151166d03ea1b95b92f0bba98afd8e0 |
|
MD5 | d5343d420446b486994f6e69167c90c3 |
|
BLAKE2b-256 | 1b87216ea2892a0acddb7705887376510b56deb8604badeacdad0e56b3cf6246 |
Hashes for robocorp_action_server-0.0.19-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1054febc54e3186c5d7c228cd42cda6e4424b82305ab24e663cb497b1a6b697 |
|
MD5 | b6f08c53ec5e5b0018438effe5bf06f2 |
|
BLAKE2b-256 | 53f6b3907b6d45a9133dfa62e7bdfd0a22e6fcf2c0c05c0ec28a1aeed7cad898 |
Hashes for robocorp_action_server-0.0.19-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abf805625a4b8a92732012788b7ec34802ecbe45736e3ff3c21cff89ed65d71f |
|
MD5 | aed81e93e967b8e7e99d869178d400e6 |
|
BLAKE2b-256 | b7246f8bc32dff5ef202a91984f9a2b1f9104d7ce75630709d729b3b07bf6860 |
Hashes for robocorp_action_server-0.0.19-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 109df1a4860b67bfbd34952526117d8c177c22044d78584984933dfe993ae596 |
|
MD5 | 90c46e4e6f704cfb0903926d25301668 |
|
BLAKE2b-256 | 13dd5e2ea380a30848876146b7bb9e62c8443e7284820d4df657627122fca494 |
Hashes for robocorp_action_server-0.0.19-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 912ef226234591c03db8827cfa4f8b1acfd3504b4f344c950184238446e4d12a |
|
MD5 | 772afc15f1ac342e14386cd9d28767f8 |
|
BLAKE2b-256 | 45fdbd7280f5430c8f0a6f209c9f7523a7c8c9e6b32c552ce3dd42c89d65ec0a |
Hashes for robocorp_action_server-0.0.19-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d3fbe7f2ee40b5c76bd2d7bae8e38c361fe1248ea69452151144d4683657fb1 |
|
MD5 | 9ae8ee0cac91604cce08c4a3b179a497 |
|
BLAKE2b-256 | e6b8906e7f7cce0788d3ce76c45413b54783cb4d82dcb9a225d2b890b637a045 |