Catalog PyPI
PACKAGE EXPLORERView in registry

acty-openai

PyPI

OpenAI executor for acty

langchainopenaitelemetryworkflow
Versions collected1
Direct dependencies8From release 0.1.0
Last observed20 Oct, 18:43 UTC

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.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.05 Apr 20268

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

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:cb439347e49e9907d8e5960788e49737a6ca6b4273a1a58240f395c4a04f2e96