Skip to main content

Better LLMs Structured Outputs

Project description

Belso: Better LLMs Structured Outputs

Documentation PyPI version License: MIT

Overview

Belso (Better LLMs Structured Outputs) is a Python library designed to simplify working with structured outputs from Large Language Models (LLMs). It provides a unified interface for validating, translating, and processing structured data across multiple LLM providers.

Key Features

  • Schema Validation: Validate LLM outputs against predefined schemas
  • Multi-Provider Support: Seamlessly work with outputs from:
    • OpenAI
    • Anthropic
    • Google AI
    • Mistral AI
    • Hugging Face
    • Ollama
    • LangChain
  • Format Translation: Convert between different schema formats
  • Robust Error Handling: Comprehensive logging and error management

Installation

pip install belso

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

belso-0.0.2.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

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

belso-0.0.2-py3-none-any.whl (34.1 kB view details)

Uploaded Python 3

File details

Details for the file belso-0.0.2.tar.gz.

File metadata

  • Download URL: belso-0.0.2.tar.gz
  • Upload date:
  • Size: 26.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for belso-0.0.2.tar.gz
Algorithm Hash digest
SHA256 d81d253f697d54133df3eb5c4dda2659d236bc7847ba450a612c11adf857c58d
MD5 8b3fff0dcc05396cfb901959c63f4031
BLAKE2b-256 4493b7a818247ae9f157f7df73a0455c2d999013317aebe9e5a0e42438598d52

See more details on using hashes here.

File details

Details for the file belso-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: belso-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 34.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for belso-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cdf8ebabc0aa7152eb3e302d4b1a85d6e313d942dc61a5cbfa6691ba55149706
MD5 c2df79dd97468eada96066ec9282337b
BLAKE2b-256 832264938cf4582e28dc4bf72037c78b61e7b21c87a616f537a165cdbac90fcc

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