Skip to main content

Jentic Apitools LLM - Unified LLM utilities and provider abstraction for consistent LLM usage across packages

Project description

Jentic API Tools - LLM

Unified LLM provider abstraction for consistent LLM usage across the Jentic API Tools monorepo. Supports Anthropic Claude, AWS Bedrock, OpenAI, and Google Gemini behind a common interface.

Key Features

The package provides an LLMHelper facade that automatically selects the configured provider and model, with a light_mode option for cheaper operations. Under the hood, each provider implements the LLMProvider abstract base class with a synchronous call method. Response parsing utilities handle markdown fence stripping, JSON extraction, and success field parsing from canonical LLM payloads. A SemanticContextBuilder constructs structured context strings from OpenAPI specs for inclusion in prompts.

Dependencies

Internal: jentic.apitools.common. External: requests, boto3.

Installation

pip install jentic-apitools-llm

Quick Start

from jentic.apitools.llm import LLMHelper

helper = LLMHelper()  # Uses settings defaults
response = helper.call_llm("Summarize this API endpoint.")

# Light mode for cheaper operations
helper = LLMHelper(light_mode=True)
response = helper.call_llm("Quick summary.")

Testing

pytest tests -v

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

jentic_apitools_llm-1.0.0a1.tar.gz (15.0 kB view details)

Uploaded Source

Built Distribution

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

jentic_apitools_llm-1.0.0a1-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file jentic_apitools_llm-1.0.0a1.tar.gz.

File metadata

  • Download URL: jentic_apitools_llm-1.0.0a1.tar.gz
  • Upload date:
  • Size: 15.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jentic_apitools_llm-1.0.0a1.tar.gz
Algorithm Hash digest
SHA256 c0eff75fbe2d175842f94d16e7c0d8b17577c5d2f20e7402519ef28792d300a2
MD5 1fafebc89ad28646644478afd274cc6d
BLAKE2b-256 eedf44ee2d4cc6754186172f9ac1d47543b44421ce40bc3273d9cf41b4f51c72

See more details on using hashes here.

File details

Details for the file jentic_apitools_llm-1.0.0a1-py3-none-any.whl.

File metadata

File hashes

Hashes for jentic_apitools_llm-1.0.0a1-py3-none-any.whl
Algorithm Hash digest
SHA256 4e970f9b7f8114e335c749b61002353488887c08a7e59dba8e1478d966bd4c05
MD5 f1fe1233b52dbfa39074458d6cb1236c
BLAKE2b-256 20381d828f667233be06a63fa51b9a699741637b17123696310d160c5b5c84f0

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