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.47.tar.gz (23.7 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.47-py3-none-any.whl (33.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: composo-0.2.47.tar.gz
  • Upload date:
  • Size: 23.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for composo-0.2.47.tar.gz
Algorithm Hash digest
SHA256 4f010ec9295237cfee135ff094ceb4b9499db8bd0baece2df520ec5e6e404ae2
MD5 8bc2133f5064f44cb5e84d61f5878901
BLAKE2b-256 cc3aea0334d46940bc2a887d24b0a56883c48279f1af90f2b3ccbe4325634d97

See more details on using hashes here.

File details

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

File metadata

  • Download URL: composo-0.2.47-py3-none-any.whl
  • Upload date:
  • Size: 33.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for composo-0.2.47-py3-none-any.whl
Algorithm Hash digest
SHA256 e5eaa214dc450eb4b90fbe0e0c7e830c978a89b5e0570aad7cf142125ae08696
MD5 57b992b14c5823e0d2cdf33707276908
BLAKE2b-256 805afad05194431d453e35fb4b33097deef0294b33f0677a4badef14d281cc57

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