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 package.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 package.yaml contents).

Note: the package.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).

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.

Documentation

Explore our docs for extensive documentation.

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

Uploaded Source

Built Distributions

robocorp_action_server-0.4.0-cp312-cp312-win_amd64.whl (8.7 MB view details)

Uploaded CPython 3.12 Windows x86-64

robocorp_action_server-0.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (10.7 MB view details)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

robocorp_action_server-0.4.0-cp312-cp312-macosx_11_0_x86_64.whl (14.9 MB view details)

Uploaded CPython 3.12 macOS 11.0+ x86-64

robocorp_action_server-0.4.0-cp311-cp311-win_amd64.whl (8.7 MB view details)

Uploaded CPython 3.11 Windows x86-64

robocorp_action_server-0.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (10.7 MB view details)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

robocorp_action_server-0.4.0-cp311-cp311-macosx_11_0_x86_64.whl (14.9 MB view details)

Uploaded CPython 3.11 macOS 11.0+ x86-64

robocorp_action_server-0.4.0-cp310-cp310-win_amd64.whl (8.7 MB view details)

Uploaded CPython 3.10 Windows x86-64

robocorp_action_server-0.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl (10.7 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64 manylinux: glibc 2.5+ x86-64

robocorp_action_server-0.4.0-cp310-cp310-macosx_11_0_x86_64.whl (14.9 MB view details)

Uploaded CPython 3.10 macOS 11.0+ x86-64

File details

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

File metadata

  • Download URL: robocorp_action_server-0.4.0.tar.gz
  • Upload date:
  • Size: 391.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.10.12 Linux/6.5.0-1017-azure

File hashes

Hashes for robocorp_action_server-0.4.0.tar.gz
Algorithm Hash digest
SHA256 cb0e6acee8ff93850193686969b5e0809811244614bd5e01028e04394ff1a984
MD5 51328f39135c0bd2345e4a438596ac5c
BLAKE2b-256 217b67c3bf61b84c68432e8fab331f255203b3c710bb308251477bb1a05e70c1

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.4.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 226ab7bd3979d09b50b508c09ea1034d42d48d0447c7580002c8ff8d63b4076d
MD5 a0b2dce8ddea0e749bce381fa9b7ac01
BLAKE2b-256 a7f7f51c482b41c13565e0985e4496407dc386859306485c4a305b49e773def3

See more details on using hashes here.

Provenance

File details

Details for the file robocorp_action_server-0.4.0-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.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ff11294c675240e9990a894c3720be0f59de5eb70e31ced63feb2506682a7d79
MD5 e039019abed250505da90207101be255
BLAKE2b-256 8250dae31a77d371b0f656b016d11e6b463f3945fa5bcebf0730a58d74bbbea9

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.4.0-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 a0b92fdcd8ed7e4e34d9702901e13bb292a264f955f9cd1178f23913af5eaacf
MD5 66964aa08fe81a68e187985bac9be9f5
BLAKE2b-256 cfe38c112abdb356fbec6ae3c0c5ea5aafa1ef5e10f025613facbbcfc69037fc

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.4.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 933cb1e30dfdc49ae9b28b1bc71d22d09be763c0af6b36b17b51cecb505eb813
MD5 923afefcef72fa3d9490f98fdffe37f8
BLAKE2b-256 26a41eb5d09778b9ed73e71cef9f0d17f64ed7f64cbf4950b6fe72764cb80c9f

See more details on using hashes here.

Provenance

File details

Details for the file robocorp_action_server-0.4.0-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.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f2103965bf1a464909c7f0cb8fb1b3d8c489bad91b37ba51357478add96b47ab
MD5 0aa1ff11d7e9491fa3740463012605c2
BLAKE2b-256 09487449f2cc4861dc31df44fa05ef9e0bfeb67df16b0c530424ef16b0ed69cb

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.4.0-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 284ff564a8a33e75f5ea31982dd6a5b869162005fccf012baee960c220d7e89a
MD5 8986fa76c3bd43361ea39ced63495122
BLAKE2b-256 c066ee775a2199335e3f2130af060c65f4f3d12cb1a198327b87b5326c5212f1

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.4.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d1ba4e37753e4065c4c10bfb96a8f7a089a3b6baa5c302fd2b8474a011d43768
MD5 db3d4429bd31015de526fcf647a869b8
BLAKE2b-256 3a6ca63a88d7615583bad22bf055ef42af16d21c876f5a30829f4a5717b55f05

See more details on using hashes here.

Provenance

File details

Details for the file robocorp_action_server-0.4.0-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.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d671b4f8e63321b81ed568cbc9e8951f3bccbe325903b1318816df5e1a3588c6
MD5 91a2c74a22d572783e1f58c1f53188e5
BLAKE2b-256 821aed6ca627f908d0c68d342cc38cdcb9be19f7a27877f6f0dee79c7372d000

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.4.0-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 f7b0b03b5eb10384c9efe4a5881965756348b8ec2cbbfaf7f0f6ff24c3ee5064
MD5 8d0921b6ced82038b080fcc856527929
BLAKE2b-256 1e6549af550f0fdf121c2c7be4e6590b2cc694288e0e40b0c060fadac62ff0f3

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