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

Uploaded Source

Built Distributions

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

Uploaded CPython 3.12 Windows x86-64

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

Uploaded CPython 3.11 Windows x86-64

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

Uploaded CPython 3.10 Windows x86-64

robocorp_action_server-0.3.0-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.3.0-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.3.0.tar.gz.

File metadata

  • Download URL: robocorp_action_server-0.3.0.tar.gz
  • Upload date:
  • Size: 389.3 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.3.0.tar.gz
Algorithm Hash digest
SHA256 3ff9601ec6666e3489fa0e5d4604b3044bc5dc83228697b95104c1181f3dbbf0
MD5 83495fe8c56368da00328c8d07cfb497
BLAKE2b-256 c5e1d423237d8f9bcfdd5f32e37ac0151c3d10d615928d505e07b406d2233eaa

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.3.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f5583e38bc4eff5a3afd6e27affa2ab89f67617c32771dad4c693fb249d61660
MD5 771f691ed7ed5e84c27ee0a77db26562
BLAKE2b-256 11fb86e66489cda8352d440e3155414013abe154e64b695ffbf674048a8c0cd8

See more details on using hashes here.

Provenance

File details

Details for the file robocorp_action_server-0.3.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.3.0-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b8f55ab406d596407d5d4c635bceedc83e43d8b0f449f40a1ebcb48bedad1d05
MD5 4f2c46e4b828ae1ad59a7adcfb9a2647
BLAKE2b-256 78b359897b13cc873dcc02bca88acaa89f09db6d5d3ac251a2c9305841028bb0

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.3.0-cp312-cp312-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 13796ebd79caa9d1792f6bf912c77281f801fb67955f85149ea5579f8c7c0dae
MD5 33a488d0d31ec15c7fd7cb05c993be5d
BLAKE2b-256 9dce732730718b49ce4c1fb3569a5f0d66c6b13c7425e478c278a34aebf8772b

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 252ea24eee0f4357ce79d55a13eefa6756b8eee302fff8cb6464b7e4285f84f0
MD5 bf062d98fb2e8ca5f826a586e966ed5c
BLAKE2b-256 4942c2380cc0c1c5c74c9993f52968ed54ecc33f04cc72b612765e3f95c79b46

See more details on using hashes here.

Provenance

File details

Details for the file robocorp_action_server-0.3.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.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bf9d65657e8fd1aa8bf6f2ffdfc2e991c657a6b3270fd9c47726c1e15f11ffab
MD5 365b5fa84aa8b7d261298fbfdb7e0fed
BLAKE2b-256 829c4e84b4852c2e8eb14ac88d09ce061d424ca3c6065931e3dba03697066984

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.3.0-cp311-cp311-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 075ce823e3f3ba1fd964525d78af53af8b267bd90c53ffda5e13a45f97738ac6
MD5 8fff153210ce28908f49691d12cf1f6a
BLAKE2b-256 053efc39f6615ed7bd280a5716bea19362c3fd1eaca7a91ccd086a1f6111438d

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.3.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4d8d94a79b19699c6f1034bc1bc4c84ac9ec32dba23a786ba26dfdce55e8a072
MD5 c301f5b94a71488cd0778f337e9c0c87
BLAKE2b-256 6afd3da66ac85c0451c268f3a0d81a89443bc025601533fd2a55b8ac7c1dbf78

See more details on using hashes here.

Provenance

File details

Details for the file robocorp_action_server-0.3.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.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 706a497c7effeeb810f321e2c76b4495a339f055fd3c6545b9086e9dcaa7d745
MD5 d0a583c048b0438b666b436a48cb538e
BLAKE2b-256 fe4d18427710db5a070ee7db4a8ad8a29d37320e2fcace72f0e7ce2a03f3229a

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.3.0-cp310-cp310-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 e68cbd8cfd0e28cf90dfc09c0fc1c2e547091ba24df60dd407768bd88c616fde
MD5 51c4ae7d921e8f509bd3cf6daf4bc4ba
BLAKE2b-256 5882899809dce3754334880689c77969c7485fcf4f762dd543feed07a011977d

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