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-0.0.0a10.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-0.0.0a10-py3-none-any.whl (22.2 kB view details)

Uploaded Python 3

File details

Details for the file jentic_apitools_llm-0.0.0a10.tar.gz.

File metadata

  • Download URL: jentic_apitools_llm-0.0.0a10.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-0.0.0a10.tar.gz
Algorithm Hash digest
SHA256 81b3080fde1d36bee36e1c09069ca323d385f258fc0e72cd369465c0d3a02c66
MD5 3856d29d9023b0dcba9d87e955dd3909
BLAKE2b-256 750d8d5bb330fc2c3b5292b11d5e7550fef4a7da1aff431751d45e2895d27fc8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jentic_apitools_llm-0.0.0a10-py3-none-any.whl
Algorithm Hash digest
SHA256 2eefe3103d9f44cb59464a48fa48af1fcc3bd62bce9e511c820da3abf1b91b0a
MD5 a7b0ebbd3c4e8175b26e0305ee57c2b7
BLAKE2b-256 78f51b2f5b1ba64c8c96a6a11b75e8d55613fcbb65c952da6f6cd833b0e0615c

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