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

Uploaded Python 3

File details

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

File metadata

  • Download URL: composo-0.2.47b20251106114904.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for composo-0.2.47b20251106114904.tar.gz
Algorithm Hash digest
SHA256 58c30180c916d1b8097f49d0440898a75014bcf5700a1e71ab6f565cb5b01e74
MD5 56291e21f399ee47f743a7f616594b08
BLAKE2b-256 4f0d5fde11c213dd3af29ef31f2a7f6c05ac67b58c55c01cc4824a4e7ec3948f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for composo-0.2.47b20251106114904-py3-none-any.whl
Algorithm Hash digest
SHA256 d1d17843f94aa0576c98b17ff51fc5f4a884e2feed8ca8c5eb5cce928fa4137f
MD5 cebf9c6a9a94670d6b87f685cc102eca
BLAKE2b-256 cf4a5ff9e396ef11aaf0c575d5ae29d183d2335ead17c16d74dc07d7e6e1df67

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