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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 Windows x86-64

robocorp_action_server-0.4.1-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.1-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.1-cp311-cp311-win_amd64.whl (8.7 MB view details)

Uploaded CPython 3.11 Windows x86-64

robocorp_action_server-0.4.1-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.1-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.1-cp310-cp310-win_amd64.whl (8.7 MB view details)

Uploaded CPython 3.10 Windows x86-64

robocorp_action_server-0.4.1-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.1-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.1.tar.gz.

File metadata

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

File hashes

Hashes for robocorp_action_server-0.4.1.tar.gz
Algorithm Hash digest
SHA256 4934681d090ecc5595c7e25d342538614b7e785d0f665fa4a8483569c872619f
MD5 2c71acd7a540395f247e1f528abab406
BLAKE2b-256 1156e68f149ef7723dc54b73c05f8186c5b604bbe69c2ddd5c4f1f2fe75df12a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.4.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 7897edbbf1a7bee8c4daf461d8161dd2f3ffae1683562f0c724156b89159084b
MD5 7dfa0c59e2f7b6c6618c32b09e65c30a
BLAKE2b-256 4e811c3ffd75c9a4de5be46028828dca76ec56a3ac18144cfef53a9a5cb421a5

See more details on using hashes here.

File details

Details for the file robocorp_action_server-0.4.1-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.1-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 818305ca198e6325266dab69b3596a2999fa7d13fc2c3d98fc113c169213119e
MD5 0ed270963d7f102891884efe6fca27f1
BLAKE2b-256 6b3702ad12da49d90dd34f75723c9037a1bd5465f80ecd6fbdd6fe46e8760a74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.4.1-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 60fc0cc0adbb37de401ad03283b5685061992d6f5a555c6d686190567a892d1f
MD5 77b04fc21587036188d04a0a7a783466
BLAKE2b-256 3316edaa209078a1516bbda04380a475ce0e6e4efdb72d023e8421636eaab3a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.4.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c9dcf7a934853775639b7acccd6bc355f61686567c80ca0c68c5b19667a0ac88
MD5 8e5ffa327d7666e14d7e8cc00858ebc0
BLAKE2b-256 614859bf6f012f76949f0397bc57e2e7629f13ed3a50d1f395021c3a975eb16f

See more details on using hashes here.

File details

Details for the file robocorp_action_server-0.4.1-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.1-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ac4ef9f2f405be7f47dea415f216cd6a06e6f90f0f851de07ac0aba1b6b099a3
MD5 78928f236bbfce13d1541b1397d3322d
BLAKE2b-256 a4f9360e61f25335e94ff7c46330076f96bba112cdd09ad72d60698c7780cabb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.4.1-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 e7bcf944640935a14f3ffa26f5c8db56243c7761611f2eaa37d50e07a1a0d041
MD5 c2416b6850e93573df8fa733141e0d01
BLAKE2b-256 25eebbbd516c67b7886f4fc1a0a76b4a06fe767a5162fb85e2be8a93fcab848d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.4.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 89ee60a98365dc2906fa765a7fd1b403df106ff565603d5eb3672e7e74da6bc1
MD5 9b08849e51ba398498a80a0fe3c21138
BLAKE2b-256 599ad4c5cf3b2b007a571ed52d985f80e21e10cd83149689a05181e6e93969eb

See more details on using hashes here.

File details

Details for the file robocorp_action_server-0.4.1-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.1-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 94ffdef025f4001fde986e8fc56489ab34f196228f4c36152e27390194f9fd6e
MD5 ed524e199ee1d4b15c5f8c2fa46a5ed8
BLAKE2b-256 0ebe91cfd2ea94fd1a83bbf8a57da9b03cfff5526cef657b26fa08928f49ae0b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.4.1-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 2bc0375d6d78ca1e87dec20771a7a25f642b179d524255f1d8fe69ee374a3520
MD5 04ad29412b8d2694f2502287f0ddd118
BLAKE2b-256 06372ee0acb5bd9c78a5b6a8e69a8fd148fe0279223b236a7114165170a48ce2

See more details on using hashes here.

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