Skip to main content

Integrations SDK for Autohive

Project description

Integrations SDK for Autohive

PyPI version Python License: MIT

Build integrations for Autohive's AI agent platform. Define actions that Autohive agents can execute — call APIs, process data, and connect to third-party services.

Installation

pip install autohive-integrations-sdk

Quick Example

from autohive_integrations_sdk import (
    Integration, ExecutionContext, ActionHandler, ActionResult
)
from typing import Dict, Any

integration = Integration.load()

@integration.action("fetch_data")
class FetchData(ActionHandler):
    async def execute(self, inputs: Dict[str, Any], context: ExecutionContext) -> ActionResult:
        response = await context.fetch(
            "https://api.example.com/data",
            headers={"Authorization": f"Bearer {context.auth['api_key']}"}
        )
        return ActionResult(data=response)

Key Features

  • Action handlers — async handlers with typed inputs/outputs and built-in HTTP client
  • Authentication — flexible auth config (API keys, OAuth, custom fields)
  • Billing support — report per-action costs via ActionResult.cost_usd
  • Error handlingActionError for expected application-level errors
  • Connected accounts — expose authorized user identity back to the platform
  • Validation — JSON Schema input/output validation with detailed error reporting

Documentation

Guide Description
Building Your First Integration End-to-end tutorial covering config, actions, auth, testing
Integration Structure Directory layout, config.json schema reference
Patterns & Best Practices Pagination, API helpers, multi-field auth
Starter Template Copy this to begin a new integration

Links

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

autohive_integrations_sdk-1.1.1.tar.gz (715.9 kB view details)

Uploaded Source

Built Distribution

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

autohive_integrations_sdk-1.1.1-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file autohive_integrations_sdk-1.1.1.tar.gz.

File metadata

File hashes

Hashes for autohive_integrations_sdk-1.1.1.tar.gz
Algorithm Hash digest
SHA256 8bbe318fae6d9a935f149dc6df2b70503f536894d272c55df4823812534a9cc7
MD5 474144131dcc9fe7ba3ab33953189447
BLAKE2b-256 8ab1980098bc9687073351b6fd7682137624beff6745b72996c0eb46f2a2caad

See more details on using hashes here.

File details

Details for the file autohive_integrations_sdk-1.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for autohive_integrations_sdk-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 91dc0d5a89edb58df884f342c17964c16f40c0010ead8c5cfee71dd205a58b91
MD5 13503380bcb5f54360e1aee589303572
BLAKE2b-256 f4e2e6e5d33709201f338d7c8e1174211052f8f3b9d53a6e8c0e17bb18c9ebbb

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