Integrations SDK for Autohive
Project description
Integrations SDK for Autohive
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 handling —
ActionErrorfor 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
- GitHub Repository
- Release Notes
- Public Integrations — examples of production integrations built with this SDK
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file autohive_integrations_sdk-1.1.1.tar.gz.
File metadata
- Download URL: autohive_integrations_sdk-1.1.1.tar.gz
- Upload date:
- Size: 715.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8bbe318fae6d9a935f149dc6df2b70503f536894d272c55df4823812534a9cc7
|
|
| MD5 |
474144131dcc9fe7ba3ab33953189447
|
|
| BLAKE2b-256 |
8ab1980098bc9687073351b6fd7682137624beff6745b72996c0eb46f2a2caad
|
File details
Details for the file autohive_integrations_sdk-1.1.1-py3-none-any.whl.
File metadata
- Download URL: autohive_integrations_sdk-1.1.1-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91dc0d5a89edb58df884f342c17964c16f40c0010ead8c5cfee71dd205a58b91
|
|
| MD5 |
13503380bcb5f54360e1aee589303572
|
|
| BLAKE2b-256 |
f4e2e6e5d33709201f338d7c8e1174211052f8f3b9d53a6e8c0e17bb18c9ebbb
|