Skip to main content

Robocorp local task server

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

robocorp-action-server

⚠️ Deprecation Notice: Development of this package has moved and continues under a new PyPI package: sema4ai-action-server. You can follow the development in this GitHub repository. The robocorp-action-server package will no longer receive updates, so please update your dependencies to ensure continued support and improvements.

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

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded CPython 3.12Windows x86-64

robocorp_action_server-0.4.2-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.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

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

Uploaded CPython 3.11Windows x86-64

robocorp_action_server-0.4.2-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.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

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

Uploaded CPython 3.10Windows x86-64

robocorp_action_server-0.4.2-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.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

File details

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

File metadata

  • Download URL: robocorp_action_server-0.4.2.tar.gz
  • Upload date:
  • Size: 389.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.12.3 Linux/6.8.0-1021-azure

File hashes

Hashes for robocorp_action_server-0.4.2.tar.gz
Algorithm Hash digest
SHA256 cb451f98ee633064e37308a9bd1fee2112c0efb853ef49280124d29818958205
MD5 29981571b77d4434245326cfe28ce8ab
BLAKE2b-256 1717e41bccfcb5ecaae0ae58fd8fb60274c7638a87d6e040b8442ddd11c7c2b4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.4.2-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0b0db2a91f5004954f54ab839bc3f77def526ea4aca51d1c6832b17503d50cc3
MD5 b7ad77d57725a6289ecadf244649fe35
BLAKE2b-256 6a8dc3b8f5f3d35a2f809caef8eb4b8715e1ef07cc932fa0bc6c8961d703b3c1

See more details on using hashes here.

File details

Details for the file robocorp_action_server-0.4.2-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.2-cp312-cp312-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 650c548b9b79c6d71b0dcf953c2e35a2de022a14eb5f5d87662573f6633abebd
MD5 26996049bbbf42a86a0e98ac8f30c072
BLAKE2b-256 6cc17dc2b5082e32860dabbcc6f2670d9b29e3fb73f2f2cbc76fb2871b08d7a1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.4.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 8fdb75cfbaa6ee2e476baee2c79e19af68546bc17fbad298b33d51439a3448de
MD5 6d541d311977c3074d86f562750bfcfc
BLAKE2b-256 695a208ebf919153415d2e63c9b02f24d62102cd2576fac3e6d451abe7467696

See more details on using hashes here.

File details

Details for the file robocorp_action_server-0.4.2-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.2-cp311-cp311-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 0481dacfdb5dd77a76b6930d5b52f3255dea715da5e0ece04294bc453b2009bb
MD5 1bb7c29b97b02a560c48a49065b1f5d5
BLAKE2b-256 45768c49f6ce7cb12ca70a2a6c588e0b092758573051aa976e7abee286c2003e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for robocorp_action_server-0.4.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 8d3b65ab60d55b3ba10a16a87475a0190fb55742b77145217d7998f672d0f759
MD5 08ce8f2c017d10a52f2203b6a9089cc3
BLAKE2b-256 ba2af6ed46b3d100a8a87e7b38fe9cba4089e16b8911bc405e7dce42feb5adb3

See more details on using hashes here.

File details

Details for the file robocorp_action_server-0.4.2-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.2-cp310-cp310-manylinux_2_17_x86_64.manylinux_2_5_x86_64.manylinux1_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2f3fbc3c5440c0be36478e399dbd23399a8be59388699315591bd94910c13456
MD5 b97ac7c50ff3a4a578949587482e23f2
BLAKE2b-256 4d69d8dec2c46831e15e3efd3c06c60cc43147dc14c5cd70418c0b8988be4a0d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page