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).

Optionally, you can have a conda.yaml for specifying the Python environment and dependencies for your Action (if a conda.yaml is present, then RCC will be used to automatically bootstrap it and keep it updated given the conda.yaml contents.

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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 Windows x86-64

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

Uploaded CPython 3.11 Windows x86-64

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

Uploaded CPython 3.10 Windows x86-64

robocorp_action_server-0.0.15-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.15-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.15.tar.gz.

File metadata

  • Download URL: robocorp_action_server-0.0.15.tar.gz
  • Upload date:
  • Size: 319.9 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.15.tar.gz
Algorithm Hash digest
SHA256 3c23ea5d06ee48ed7ae804e26dfdff0c258d8b80d4944050df4ca8a77a173fbb
MD5 7fe2dcbea01beebde70fb65753597879
BLAKE2b-256 1ec3d0568638370079e5a53106b8baff723eb71245e5234251917fadb0dcca77

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.15-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b728246bc7c184871322e5b02bef99a3918f18abc264c18b4067d1f52ed71682
MD5 82200f712a0de2f5df3981e9916b7136
BLAKE2b-256 3532219a888f43fb35dee0b3e06334d1d8527cddd2bb909ea3261762d0a54d9d

See more details on using hashes here.

Provenance

File details

Details for the file robocorp_action_server-0.0.15-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.15-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a742e5d44d8a9322b773cf504e1d45cec64cc0dbf4f14a9917e085ae2ec7243d
MD5 8ff32fd6ac6bebe0a4772eb7bd66a5ea
BLAKE2b-256 f6df26bf7e288086a3a5963ba93e74e72f3e70a33b395539309de10459171abc

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.15-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 b1ca179dcb86cee55c343782620ee88dc0c461b4f186abd819da6f754b567d57
MD5 13dceea3402d545cdbf6fcc02f7cf4a8
BLAKE2b-256 24b21edf9510415e25517d3e1feef6f255a77d9934ab037bf68ec3ee3fbac856

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.15-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 9dbb1344442cb80d628f18947d9ee9d9ffb19dc1e7b35f6fadbd219023ece963
MD5 873caa4f11974f304c577b946ea6c808
BLAKE2b-256 c09eb9666610f92f88fe83819d0b750cab3dc2871d42ceb4b00d5d3d00c1b6f3

See more details on using hashes here.

Provenance

File details

Details for the file robocorp_action_server-0.0.15-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.15-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 df9753469d002cc9848f0aeb1b531efaa36a7b2c9f7ab1f5d847122f8a45c426
MD5 0ce4f65f87fdf925c91b93d4ce5d8892
BLAKE2b-256 966df5d4926f4a0e4b2739600fc785201a718de14d8b77f635cc337b4a336b24

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.15-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 faff3d821bb8351c64b059e94ccfc5d0697cd1de4a084395d96dc8c8836fe84c
MD5 74b8ec0cd1c598b1d19c1f0c8aff24a2
BLAKE2b-256 9e60049a25a1d99f46034a3bf603c9cd5d4e078bdc950848aa7b445844d26c57

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.15-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 1005c8de31bed4c26f925bf721091f7bd88bcd962f539cc789e7ad46e9ec3966
MD5 6033063405ee6e045c2f3a2663f61fe8
BLAKE2b-256 414b40131f371c32e4b669bef00d3261a08ae83441d3024af558b9888f326ca9

See more details on using hashes here.

Provenance

File details

Details for the file robocorp_action_server-0.0.15-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.15-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 292df4729977bf4ea2fed5c0aa65c8b90f7286bfc51e871dd65a1762a7579397
MD5 990a1d15aaaf363a4e5e2e53393bf5a8
BLAKE2b-256 a231471bdefd3342adcf65d190d50cfabe2f99955eca18af1d4ed7e601d9cf9a

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.15-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 4d8aee34562e6cf70c213554132ef917dc4e984923f3bb79d54472bcb79ff9be
MD5 5b69838dd05d946b3d99ba2596b85651
BLAKE2b-256 b4b01f39298e0c11ca722e2444f6d58110283a5a9e449a535d500cce8c2ef89a

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