Skip to main content

horizondesk SDK

This SDK provides the official interface for building plugins for Horizon Desk. It allows developers to extend OmniAgent's capabilities with custom tools and connect external AI workers.

Installation

pip install horizondesk

Quick Start: Create your first plugin

1. Initialize

Run the following command to scaffold a new plugin project:

horizondesk init MyAmazingPlugin

2. Define a Tool

Edit main.py to create your own tools:

from horizondesk import BaseTool, HorizonPlugin

class WeatherTool(BaseTool):
    def __init__(self):
        super().__init__("GetWeather", "Gets current weather for a city. Input: 'city'.")

    def execute(self, city=None, payload=None):
        return f"It is 22°C and sunny in {city}."

def register_tools(agent):
    plugin = HorizonPlugin("MyAmazingPlugin")
    plugin.add_tool(WeatherTool())
    plugin.register_all(agent)

3. Run the Workshop

Launch the high-fidelity GUI Workshop to test your plugin:

horizondesk run horizon_plugin.raf

Security & Privacy

  • SecretStorage: Always use SecretStorage.get_secret("KEY") to access API keys. Do not hardcode them.
  • Redaction: Use SecretStorage.redact_pii(text) before sending data to external workers.
  • Auditing: All plugin tools are visible to the user and subject to manual intervention (Alt+F7).

Connecting External Agents

To link your own AI worker, create a tool that performs a secure HTTP request to your backend:

import requests
from horizondesk import BaseTool, SecretStorage

class ExternalBrainBridge(BaseTool):
    def __init__(self):
        super().__init__("AskMyBot", "Consults my specialized AI model.")

    def execute(self, **kwargs):
        api_key = SecretStorage.get_secret("MY_BOT_API_KEY")
        response = requests.post("https://my-api.com/v1/chat", json=kwargs, headers={"Auth": api_key})
        return response.json().get("reply")

Metadata

Release files for horizondesk 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for horizondesk 1.1.0
File Size Uploaded Provenance Actions
horizondesk-1.1.0.tar.gz 12.5 kB Without provenance Details for horizondesk-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for horizondesk 1.1.0
File Interpreter ABI Platform Actions
horizondesk-1.1.0-py3-none-any.whl Python 3 none any Details for horizondesk-1.1.0-py3-none-any.whl

Total release size: 25.3 kB

Release files / horizondesk-1.1.0.tar.gz

Download URL horizondesk-1.1.0.tar.gz
Size 12.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e0e7bd6ba394836543709e29d47783e1828de0d68cf30e9358d756f422e11fa4
BLAKE2b-256 checksum
How to use checksums
d716b42ec863c5978abaf33d3f3e5aea3aae50aad1a96d9d8bbfaa27458190ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / horizondesk-1.1.0-py3-none-any.whl

Download URL horizondesk-1.1.0-py3-none-any.whl
Size 12.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57cc78c6d7a926759f99e0bdcee284d6163a8d1933d10f89a13c52b2009a3ea9
BLAKE2b-256 checksum
How to use checksums
a4cbe45bee41aeecb068ce43f9cdc791a496ee776137b1e1fa4b6aef1a073bf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Security for horizondesk 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page