Skip to main content

Integrations SDK for Autohive

Project description

Integrations SDK for Autohive

Tests Coverage 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['credentials']['api_key']}"}
        )
        return ActionResult(data=response.data)

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-2.0.1.tar.gz (764.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-2.0.1-py3-none-any.whl (13.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for autohive_integrations_sdk-2.0.1.tar.gz
Algorithm Hash digest
SHA256 07cb84e69955fb9f74e07081dacde2bd5fa77a0194d978bc8fc50c28de3cbad1
MD5 e06151a2c55781e8110d36601d64cd63
BLAKE2b-256 c32633c47ff270a51d5c3418927dfa71280dd619c9d642e23bfbf23efd4c12a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for autohive_integrations_sdk-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b41f2cb26e71ee20370c4efd13848b52b159ad7b994a2b9bd179f6fe72340b79
MD5 45599e5b23efbd879d190d1603ecd40f
BLAKE2b-256 708615aa8aa51d40a6320af19f8d4191da759402e8cd706c869ee4c04e5dba49

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