Catalog PyPI
Back to packageRELEASE DETAILS

0.1.0

PyPI

acty-openai

OpenAI executor for acty

langchainopenaitelemetryworkflow
Published5 Apr 2026
Direct dependencies8
Transitive dependenciesNot calculated

README

Version 0.1.0 documentation

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 8

Native requirements
8 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
acty-core
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.12",
  "evaluation": "NOT_EVALUATED"
}
acty-core<0.2.0,>=0.1.0runtime
acty
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.12",
  "evaluation": "NOT_EVALUATED"
}
acty<0.2.0,>=0.1.0runtime
langchain-openai
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.12",
  "evaluation": "NOT_EVALUATED"
}
langchain-openai>=0.2.0runtime
build
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.12",
  "evaluation": "NOT_EVALUATED"
}
build>=1.2.2; extra == "dev"runtime
opentelemetry-sdk
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.12",
  "evaluation": "NOT_EVALUATED"
}
opentelemetry-sdk>=1.39.0; extra == "dev"runtime
pytest-asyncio
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.12",
  "evaluation": "NOT_EVALUATED"
}
pytest-asyncio>=1.3.0; extra == "dev"runtime
pytest
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.12",
  "evaluation": "NOT_EVALUATED"
}
pytest>=9.0.0; extra == "dev"runtime
twine
Environment
{
  "extras": "",
  "marker": "extra == \"dev\"",
  "requires_python": ">=3.12",
  "evaluation": "NOT_EVALUATED"
}
twine>=5.1.1; extra == "dev"runtime

Distribution files

2 collected
acty_openai-0.1.0-py3-none-any.whl

bdist_wheel · 6.79 KB · Python py3

Source file
acty_openai-0.1.0.tar.gz

sdist · 7.39 KB · Python source

Source file

Repository

PENDING
conspol/acty-openai

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:43 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:2cef29e10d3b426a4f7ea7e51649e7d8cf51ba67ab69caa52000ba5680b1ec2e

Other collected versions

View all collected versions →