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

Uploaded Source

Built Distributions

robocorp_action_server-0.0.22-cp312-cp312-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.12 Windows x86-64

robocorp_action_server-0.0.22-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.22-cp312-cp312-macosx_11_0_x86_64.whl (15.3 MB view details)

Uploaded CPython 3.12 macOS 11.0+ x86-64

robocorp_action_server-0.0.22-cp311-cp311-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.11 Windows x86-64

robocorp_action_server-0.0.22-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.22-cp311-cp311-macosx_11_0_x86_64.whl (15.3 MB view details)

Uploaded CPython 3.11 macOS 11.0+ x86-64

robocorp_action_server-0.0.22-cp310-cp310-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.10 Windows x86-64

robocorp_action_server-0.0.22-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.22-cp310-cp310-macosx_11_0_x86_64.whl (15.3 MB view details)

Uploaded CPython 3.10 macOS 11.0+ x86-64

File details

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

File metadata

  • Download URL: robocorp_action_server-0.0.22.tar.gz
  • Upload date:
  • Size: 364.0 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.22.tar.gz
Algorithm Hash digest
SHA256 16d765843fb2003c86a87d8fe6e03771bfc9910bbf5cb6be970c0a945ae0a5a4
MD5 e1b3dd8dc4eb0f6b463adc3da6722d9f
BLAKE2b-256 cad1053d0690eb6f37eae7b86f228ac93e8756b819f7a6acc2cce98d73bd5463

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.22-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 3bd9db63336135c2051b93549d1eef24fb7f7bc0fdebb854b5951308991a76f4
MD5 22fb179f138deadfbd7117e5aa3a55b7
BLAKE2b-256 57527cd5a266c44e5841e2c748b63de555d62c0683f25661ccfd386452a833e9

See more details on using hashes here.

Provenance

File details

Details for the file robocorp_action_server-0.0.22-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.22-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 61a363f540ac3695ebe187b7e8613c6a5f44ab830dd1e5e87a5cec54d864c21f
MD5 173ce4f3cf8df05c610a0c624f4ea3b3
BLAKE2b-256 e8659f22e1a55df9211a2c69b0f57064c798c4d86aa368d1b7b29ed6c22864ff

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.22-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 bd1a3f32093c568290999cb5dce1876d55735b9c667a90d997bdb04907f3dda2
MD5 008fda5fd6164523140d20b251bbde77
BLAKE2b-256 f4cac6969b80493e4f6e7ccdcde5b957fbe484325c3c8f61fe8613f30fe694c8

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.22-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 444073617159bc261c2bc69d95ec7db4310b0ca31db4cfd98afa234caafdef74
MD5 5adb9448e3b821fede47d11604a7fe2f
BLAKE2b-256 39bead75fc415859c2a02cfe40509b8647006b237583ae380378fa55f6ef3cde

See more details on using hashes here.

Provenance

File details

Details for the file robocorp_action_server-0.0.22-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.22-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 70e40de6279042364b8a80dd5e0b48520688a9d9535a4b93fc33e28918165cab
MD5 6820683825e17ceda991e2c160af6b5b
BLAKE2b-256 de76acb8d46877848c8194da04962211145de81e84ed20d37c9ce45cf941f767

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.22-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 fa05d0f4046ba5a7d259d950b80922a36533056e18f80147db66cd5c3a89e67d
MD5 3cac5d9dd5cf947715db91529ed71586
BLAKE2b-256 d217f2c789010fd2884abb7c0408b113e69bb69c36d3b96e08ed8deddf3d6864

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.22-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 75e3033eec10fe941ad9c9e9cfeff6c2d3cb4554de28fa6d638e55f4cf598543
MD5 f216bea24fe2b76e50ed3778cd01c3d6
BLAKE2b-256 eab208b426457b11ba19aa56caf87f1af3b44f592be213bf7c780cf85a5a334b

See more details on using hashes here.

Provenance

File details

Details for the file robocorp_action_server-0.0.22-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.22-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3ad26a66f85519924c0cc46b887efc0b7c77ad65286e4df4ad402494dbd2c9a6
MD5 28e0cf757ed8bbde81eb0ea1f44574e6
BLAKE2b-256 89986f3e39148ef5a4ed491e36963d2f22ba5822bb7cc5724e7da0132c8ba0bf

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.22-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 f1c6835b440431d9cd34e3e9861f21acf63a0d99763133a26cfde389b8102672
MD5 8cff4e47bd0955aacce39c0265b4d8ac
BLAKE2b-256 73028d29caf0096e2e7d7d499c835df3c24847d0823526d52505679091171c69

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