Skip to main content

Python SDK for the LLM Conveyors AI Agent Platform API

Project description

LLM Conveyors Python SDK

Official Python SDK for the LLM Conveyors AI Agent Platform API.

Installation

pip install llmconveyors

Quick Start

from llmconveyors import LLMConveyors

# Uses LLMCONVEYORS_API_KEY env var, or pass api_key= directly
client = LLMConveyors(api_key="llmc_...")

# Generate with streaming
result = client.agents.run(
    "job-hunter",
    {
        "companyName": "Acme Corp",
        "jobTitle": "Senior Engineer",
        "companyWebsite": "https://acme.com",
        "contactEmail": "hiring@acme.com",
        "genericEmail": "info@acme.com",
        "jobSourceUrl": "https://acme.com/careers",
    },
    on_progress=lambda e: print(f"[{e.step}] {e.percent}%"),
)

print(f"Success: {result.success}, Artifacts: {len(result.artifacts)}")

Async Usage

import asyncio
from llmconveyors import AsyncLLMConveyors

async def main():
    async with AsyncLLMConveyors() as client:
        result = await client.agents.run(
            "b2b-sales",
            {
                "companyName": "Target Corp",
                "companyWebsite": "https://target.com",
                "skipResearchCache": False,
            },
        )
        print(result.artifacts)

asyncio.run(main())

Features

  • Sync + Async clients with identical APIs
  • 15 resource namespaces: agents, stream, sessions, upload, resume, ats, settings, privacy, auth, documents, logging, health, content, shares, referral
  • SSE streaming via generators (sync) and async generators
  • High-level run() method — generate + stream + interact in one call
  • poll() method for non-streaming environments
  • Typed exceptions for all 17 API error codes
  • Automatic retry with exponential backoff and jitter
  • Webhook verification with HMAC-SHA256 and constant-time comparison
  • Pydantic v2 models for all request/response types

Webhook Verification

from llmconveyors import construct_event

event = construct_event(
    payload=request.body,  # raw bytes
    sig_header=request.headers["X-Webhook-Signature"],
    secret="your_webhook_secret",
)

Documentation

License

MIT

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

llmconveyors-0.1.0.tar.gz (65.2 kB view details)

Uploaded Source

Built Distribution

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

llmconveyors-0.1.0-py3-none-any.whl (40.3 kB view details)

Uploaded Python 3

File details

Details for the file llmconveyors-0.1.0.tar.gz.

File metadata

  • Download URL: llmconveyors-0.1.0.tar.gz
  • Upload date:
  • Size: 65.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for llmconveyors-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e87cc4a09ce6554bf1e533d533c0c9762ad3fd8b2cb26b4d4f46d8b90605111f
MD5 da228d5bd7cdb2573aeca2a351fbeb50
BLAKE2b-256 e23047274eabd1575b682b3e7dbacf5a828db6dd99e17d102f659a9e89fb23a0

See more details on using hashes here.

File details

Details for the file llmconveyors-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: llmconveyors-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 40.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for llmconveyors-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a7c2f402af233e4d53be04ac7d932ca7c4cd652a94c386897f9d2a23b2be8c3
MD5 7e1b70fd6c438ad7b78d31d0b12d0fc6
BLAKE2b-256 a832a20249a287f7a950033827a57c83767d977309e82cf3433a4f676d4635a3

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