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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 Windows x86-64

robocorp_action_server-0.0.21-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.21-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.21-cp311-cp311-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.11 Windows x86-64

robocorp_action_server-0.0.21-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.21-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.21-cp310-cp310-win_amd64.whl (9.0 MB view details)

Uploaded CPython 3.10 Windows x86-64

robocorp_action_server-0.0.21-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.21-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.21.tar.gz.

File metadata

  • Download URL: robocorp_action_server-0.0.21.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.21.tar.gz
Algorithm Hash digest
SHA256 db68388911e51a048f14250b2a7a2703acc23c4efa638f6748f8e8c04c534e9c
MD5 a01a689e34dd1f18a83ed202a64b8f78
BLAKE2b-256 b8ec40fb1de3135c8c3de7366cc52d58afc5e3fb1ec9eead5ff83b06ff1a9cc0

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.21-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f71044d602b81e3f4975ce669d8d176869fa9c4062f9873c9bb148f58a9cce04
MD5 d210ba8f757f827c7db2f800841bca35
BLAKE2b-256 b5729989e6285aa316a0ae818cccae573eb8bed547dc4d3b21dd43d9acba8e46

See more details on using hashes here.

Provenance

File details

Details for the file robocorp_action_server-0.0.21-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.21-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6f6275d828861c689922e8f1583200edb56e57d6d42ec662da0c0e6f6db705b3
MD5 677a3991bf99999f286e509817f92ae5
BLAKE2b-256 a75ea509abbe1e7725a90c3903037d9332900560841d4644618fff28a18ba1f0

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.21-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 a9888055d828156a3502e7106b3a93502c0cb9e3ef7713963f3dd5f6d5989067
MD5 fb876db33748cb8cd64715469b252913
BLAKE2b-256 9e3e1c596eb7fbc9d300c6308baadfa848df13c9401ed20529c7c4118b7dece1

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.21-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f22b0d20880db8c4e5da6cacd5507f32746d511671668ecb004aab959bf699bb
MD5 9bf9916e4c2ae211bda244bbcd2e3503
BLAKE2b-256 b1944204c6b11618e2eb07782ebfefa5489f0f49e2fac0c1103db9e8e636ec06

See more details on using hashes here.

Provenance

File details

Details for the file robocorp_action_server-0.0.21-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.21-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 dc0c98e319ffc56e5e222a59578f557d0edf5c8d89b18f2bd082c77baf8bd936
MD5 f72747f47b36dd9c9d99a707549d8a36
BLAKE2b-256 7141ac0b3857c15d9064ee193116f77356d076dff784c62c083ccc1d97686ab4

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.21-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 2ffb0edb59ec30dac9806a13220a13ca7a7147e13ade9c9c5e259f957260dad9
MD5 f5061bc3fd8904de58df1df3e0598891
BLAKE2b-256 284148ab5ed4256076c7887cd45f53639b89c564913bb3c6df7fd4116fad0727

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.21-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 6ae39e3a2d6582030f824cc2d2cf5242038b38686aeaee50469e9bc5940019fd
MD5 ebb7f8ed04144f139e7f6c7ce10b9482
BLAKE2b-256 912985520aa6fa3b50bb0d5e257deb4f72b3129b373dad51e12aeef0c86344e3

See more details on using hashes here.

Provenance

File details

Details for the file robocorp_action_server-0.0.21-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.21-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aa1edc9e4c3acb941c46d2648e3da9d5399d7f90e7285a75b6af432a6b23c3a6
MD5 465ea1dd9eb08cf18959e105e5da08f8
BLAKE2b-256 22fd249da65782cf7158f3ea2ac8d27e69dd166ab65df7be929a3a759e6585a3

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.0.21-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 51710c11a3d3eea1025b44850a2cdca938da3c48b17750301c9dd99b4158d636
MD5 51f36cf5cc8536a75921442afdf70d4e
BLAKE2b-256 807c63baa0ce6a8a00836399476951af2cc579d6c941b8c360864c26e48ac71b

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