Skip to content

Releases: dualeai/dualeai-python

Release list

v0.1.0

Choose a tag to compare

@clemlesne clemlesne released this 21 Sep 17:52

First public preview of the Duale AI Python SDK for submitting Tasks, receiving
typed results, and hosting Customer Tools.

Install

python -m pip install dualeai

Import dualeai. This release supports CPython 3.10 through 3.14.

Quickstart

export DUALEAI_TOKEN=dualeai_your_token_here
import asyncio

from dualeai import ask, create_sdk


async def main() -> None:
    async with create_sdk() as sdk:
        response = await ask("Summarize this support case.", res=str, sdk=sdk)
        print(await response.model())


asyncio.run(main())

Task submission needs the API token. Hosted Tools need an Agent identifier.
Libraries need a Tenant identifier; attachment uploads also need an Agent
identifier. See the versioned README for configuration and routing
details.

Included

  • Typed Task results, streaming, resets, and continuations.
  • Customer Tool registration and delivery.
  • Attachment uploads and Tenant-scoped Library clients.
  • SQLite or Redis caching, optional OpenTelemetry instrumentors, and
    dualeai.testing.MockSDK.

Public preview

The public API can change before a stable release. Before live use, review the
versioned README for streaming resets, Customer Tool external effects,
and model-facing exception text.

Artifacts

This release attaches the wheel, source distribution, and CycloneDX and SPDX
SBOMs. The distributions were checked on TestPyPI, then published to PyPI with
Trusted Publishing. GitHub build provenance and PyPI PEP 740 attestations cover
both; SECURITY.md includes verification commands and private
reporting.

PyPI ·
README ·
Contributing ·
Source

Apache-2.0.