Skip to main content

BAML-generated types and client for coach-app boundary contracts

Project description

coach-app-baml-client

BAML-generated Pydantic models and client for coach-app boundary contracts.

Installation

pip install coach-app-baml-client

Or for development:

pip install -e ".[dev]"

Usage

from coach_app_baml_client.types import (
    ChatRequest,
    ChatResponse,
    EventEnvelope,
    EventType,
    MessageRole,
    ScheduledMessage,
    MessageStatus,
)

# Create a chat request
request = ChatRequest(
    message="Hello",
    conversationId="conv-123",
    conversationHistory=[],
)

# Parse an event envelope
envelope = EventEnvelope(
    type=EventType.MESSAGE_RECEIVED,
    meta=EventMeta(
        timestamp="2024-01-01T00:00:00Z",
        contractsVersion="1.0.0",
    ),
    payload={"content": "Hello"},
)

Generated Code

The baml_client/ directory contains BAML-generated code. Do not edit these files directly.

To regenerate:

# From repo root
baml-cli generate

Version

This package version corresponds to the contracts version. Both Python and TypeScript packages are released together with the same version number.

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

coach_app_baml_client-1.1.2.tar.gz (52.7 kB view details)

Uploaded Source

Built Distribution

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

coach_app_baml_client-1.1.2-py3-none-any.whl (58.1 kB view details)

Uploaded Python 3

File details

Details for the file coach_app_baml_client-1.1.2.tar.gz.

File metadata

  • Download URL: coach_app_baml_client-1.1.2.tar.gz
  • Upload date:
  • Size: 52.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for coach_app_baml_client-1.1.2.tar.gz
Algorithm Hash digest
SHA256 a8754f9c3caa96bbee1580d0574b104f74b91a0e132abe2a2336a1dc64f810bc
MD5 5af06655d89e5df5df779d03f655b036
BLAKE2b-256 32bab8dbfbcad5fd36a41b58613756a7240466d41f0163de3b9e3bd0d682463c

See more details on using hashes here.

Provenance

The following attestation bundles were made for coach_app_baml_client-1.1.2.tar.gz:

Publisher: release.yml on Frontierstrategies-ai/coach-app-contracts

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

File details

Details for the file coach_app_baml_client-1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for coach_app_baml_client-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 503f227b214accc9d7581cd1064ce07bcdd3ce0f5f7aae4a7946af5f4a30b307
MD5 4d10b5182225bc146a6734b625c467c1
BLAKE2b-256 f5c8af53e5f33bf0c5a4b99cd406dd0a5197e8f752293413c4c7b46362ee9883

See more details on using hashes here.

Provenance

The following attestation bundles were made for coach_app_baml_client-1.1.2-py3-none-any.whl:

Publisher: release.yml on Frontierstrategies-ai/coach-app-contracts

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