Skip to main content

Shared LLM provider layer for assert-review and assert-eval

Project description

assert-core

Shared LLM provider layer for assert-review and assert-eval.

Not intended for direct installation by end users — install assert-review or assert-eval instead.

What's in here

  • LLMConfig — provider configuration dataclass (supports OpenAI, Azure OpenAI, AWS Bedrock)
  • BaseLLM, BedrockLLM, OpenAILLM — provider implementations
  • BaseCalculator — base class for all metric calculators

Install (internal use)

pip install assert-core

Usage

from assert_core import LLMConfig, OpenAILLM

config = LLMConfig(provider="openai", model_id="gpt-4o", api_key="sk-...")
llm = OpenAILLM(config)

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

assert_core-0.2.0.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

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

assert_core-0.2.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file assert_core-0.2.0.tar.gz.

File metadata

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

File hashes

Hashes for assert_core-0.2.0.tar.gz
Algorithm Hash digest
SHA256 58a4481a3e4552f9d5a1466c53a03f9f039f9371e318b2126b8caa7054558b8a
MD5 454ca8969824fe1df4be78b2c4f90d2b
BLAKE2b-256 447bea348abf2572201eafe62d51259c558dcf817141de98c828127c0e3faff1

See more details on using hashes here.

Provenance

The following attestation bundles were made for assert_core-0.2.0.tar.gz:

Publisher: publish-assert-core.yml on charliedouglas/assert_llm_tools

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

File details

Details for the file assert_core-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: assert_core-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for assert_core-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7cf01f6ba41a02891d49110d87d523bc8f24555e4f92d71112eef4562f088d4b
MD5 bef5c58279ebbe103e9a65424ffd0ad7
BLAKE2b-256 88f9baafa65cea6748c8e4b9636b2f21050177c7373aaa4d059e66ba6af3d80a

See more details on using hashes here.

Provenance

The following attestation bundles were made for assert_core-0.2.0-py3-none-any.whl:

Publisher: publish-assert-core.yml on charliedouglas/assert_llm_tools

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