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.0a19.tar.gz (16.6 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.0a19-py3-none-any.whl (23.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for jentic_apitools_llm-1.0.0a19.tar.gz
Algorithm Hash digest
SHA256 55e6ed629f846c68244c66fcbbb724fd3a5c02ad695fa94c4ad40922165b8a2c
MD5 94455b6ced687dc4dd7f81a965d5a28d
BLAKE2b-256 184d1d2bb56d3e89453178d97d28dc4a3af92b430d080d45e423e5bd362cfdac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jentic_apitools_llm-1.0.0a19-py3-none-any.whl
Algorithm Hash digest
SHA256 3d2a8e62aa3848b1b23411cecd6c2c598869c9f7b516430ab9eeddac1479a177
MD5 45a091ac0e0605dd69d719ae6f105294
BLAKE2b-256 30b4ad5fb6cd1a1ec7d433ae0a0fa7bf199e34a029d819ca5bc5b490c1fcc317

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