Skip to main content

Composo Python SDK

Project description

Composo Python SDK

Composo provides a Python SDK for evaluating LLM applications.

Installation

pip install composo

Quick Start

from composo import Composo

composo_client = Composo()

result = composo_client.evaluate(
    messages=[
        {"role": "user", "content": "Hello"},
        {"role": "assistant", "content": "Hello! How can I help you today?"}
    ],
    criteria="Reward responses that are friendly"
)

print(f"Score: {result.score}")
print(f"Explanation: {result.explanation}")

Documentation

For detailed documentation, API reference, examples, and guides, please visit docs.composo.ai.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

composo-0.2.50.tar.gz (28.8 kB view details)

Uploaded Source

Built Distribution

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

composo-0.2.50-py3-none-any.whl (40.0 kB view details)

Uploaded Python 3

File details

Details for the file composo-0.2.50.tar.gz.

File metadata

  • Download URL: composo-0.2.50.tar.gz
  • Upload date:
  • Size: 28.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for composo-0.2.50.tar.gz
Algorithm Hash digest
SHA256 5c2ec4fa1b821aba8fb832a78a5f9cf2510c6f78208ca02088be0811d42f680c
MD5 1f0d2566859d3d4335f7c7c91b32d638
BLAKE2b-256 0c6b99641257dd2e1b8b2553818ac27189511df2fe27ccb1c2fb16980284cc8d

See more details on using hashes here.

File details

Details for the file composo-0.2.50-py3-none-any.whl.

File metadata

  • Download URL: composo-0.2.50-py3-none-any.whl
  • Upload date:
  • Size: 40.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for composo-0.2.50-py3-none-any.whl
Algorithm Hash digest
SHA256 fe625c066bddc0b62d9742f27cf297da7747a08a8089aa9c9c505936ea29fd88
MD5 df7b4f5a016a53b2734a15a9422ee65c
BLAKE2b-256 741d7360e85ffdfd9f3aa4f194a616298e6615b3196816b8347cdb54c3836dfc

See more details on using hashes here.

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