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['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.0.tar.gz (732.3 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.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for autohive_integrations_sdk-2.0.0.tar.gz
Algorithm Hash digest
SHA256 eb17cba16c7d7aa02794bc2bc8e55563f256110b34ecc891b6699fdb241d96ff
MD5 b665a3b0fddac02104cd00165f494328
BLAKE2b-256 7f75d0ba3959d08a5b93e630a7ef29d2a1f32865f9766b1a93e9775c478dcb7f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for autohive_integrations_sdk-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 53eec1bd7acd46fe91b4800cfcf5deabb29902685b00a54298158c6783ed2e9b
MD5 ae6ab2957d5930288cad833a588ecc9c
BLAKE2b-256 10355b110a62224a80577aad22f4de534e86ca6828000a25657efbe72a273c52

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