Skip to main content

Durable OpenAI Responses adapter for the MemoFlow Python SDK

Project description

MemoFlow OpenAI adapter for Python

This optional package connects an injected asynchronous OpenAI Responses client to MemoFlow's durable AI invocation, budget, tool-effect, and recorded-replay contracts. It deliberately does not install or pin the OpenAI package.

from memoflow_openai import OpenAIResponsesAdapter, OpenAIResponsesRun

adapter = OpenAIResponsesAdapter(openai_client)
response = await adapter.run(OpenAIResponsesRun(
    request={"model": "your-approved-model", "input": "hello"},
    budget=estimate,
    recorded_replay_key="primary-model-turn",
))

Call the adapter only inside a server-backed MemoFlow activity. Provider exceptions or cancellation after request dispatch are recorded as uncertain outcomes and retain budget liability for reconciliation. Completed replay envelopes are bound to the complete initial Responses request and registered executor names/versions. Reusing a logical key for changed inputs fails before budget admission or provider dispatch.

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

memoflow_openai-0.1.0.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

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

memoflow_openai-0.1.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: memoflow_openai-0.1.0.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for memoflow_openai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d0d646242f0140381200efe0e9dd784017367c73530607e0654df2e056c2300d
MD5 1855802715a4376f6c1f7fa7e99e5905
BLAKE2b-256 473a16acca48d7954a31779284c581e8d280dc11fcdcb2fda43fa4a73fa5c0f2

See more details on using hashes here.

Provenance

The following attestation bundles were made for memoflow_openai-0.1.0.tar.gz:

Publisher: publish-python.yml on evigasoft/memoflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for memoflow_openai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 517d186431923c251eef89a7c924e74bc0472065966b9f082717e3579b773525
MD5 547649c85987901e1980b150aa210d2d
BLAKE2b-256 8e4c95ee1cba5ed1c73ad8624107e6c37b17882fdb0991d699e083b098bf5903

See more details on using hashes here.

Provenance

The following attestation bundles were made for memoflow_openai-0.1.0-py3-none-any.whl:

Publisher: publish-python.yml on evigasoft/memoflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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