Skip to main content

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

Project description

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

uv add 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

uv run --package llm pytest packages/llm/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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

jentic_apitools_llm-0.0.0a7-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file jentic_apitools_llm-0.0.0a7-py3-none-any.whl.

File metadata

File hashes

Hashes for jentic_apitools_llm-0.0.0a7-py3-none-any.whl
Algorithm Hash digest
SHA256 bd747ed29cf746e4a9acb9bb434e1fd6169f542fc40707bcfc5aa0044044d0a7
MD5 5b2e507746e53eef0604aa8f1975347c
BLAKE2b-256 3b65acf2f6a75759d2bde6f148f23f8e8747c6f0b432779eca9dd3271042205e

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