Skip to main content

acty-openai

acty-openai provides an OpenAIExecutor implementation for Acty. It adapts langchain-openai chat models to the Acty executor interface and emits the shared telemetry attributes used across the wider Acty stack.

Install

pip install acty-openai

For local development:

pip install -e .[dev]

Usage

import asyncio

from acty import ActyEngine, EngineConfig
from acty_openai import OpenAIExecutor
from langchain_openai import ChatOpenAI


async def main() -> None:
    model = ChatOpenAI(model="gpt-4o-mini")
    engine = ActyEngine(
        executor=OpenAIExecutor(model=model),
        config=EngineConfig(primer_workers=1, follower_workers=1),
    )
    try:
        payload = {
            "messages": [{"role": "user", "content": "hello"}],
        }
        submission = await engine.submit_group("demo", payload, [])
        if submission.primer is not None:
            result = await submission.primer
            print(result.output)
    finally:
        await engine.close()


asyncio.run(main())

Notes

  • if you do not pass a model explicitly, OpenAIExecutor requires langchain-openai
  • the executor can attach OpenTelemetry span attributes when telemetry is enabled
  • this package depends directly on both acty and acty-core because it imports both at runtime

Development

  • tests live under tests/
  • the repo includes unit tests plus an Acty engine integration test for shared telemetry behavior

Metadata

Release files for acty-openai 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for acty-openai 0.1.0
File Size Uploaded Provenance
acty_openai-0.1.0.tar.gz 7.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for acty-openai 0.1.0
File Interpreter ABI Platform
acty_openai-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.5 kB

Release files / acty_openai-0.1.0.tar.gz

Download URL acty_openai-0.1.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
0afe01feb178f252120068197c4f1c599147344e7399cb992c87c9543bf09999
BLAKE2b-256 checksum
How to use checksums
9380951cc9b2c425572451d025e8d1c2ab8c560b0d7842abbaa153a0b02d3995
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / acty_openai-0.1.0-py3-none-any.whl

Download URL acty_openai-0.1.0-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bdce94282ee12c3be2cc1d3a7ae9f284fdaab63bfbd93f7a4a71ad1fad7fa3c2
BLAKE2b-256 checksum
How to use checksums
905f7830b00c9204f7661a24fcc2f8891f2ff3bc848933ba5e245fe8c281a4ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for acty-openai 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page