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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jentic_apitools_llm-1.0.0a7.tar.gz.
File metadata
- Download URL: jentic_apitools_llm-1.0.0a7.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0db4bad23579840e8065177e3fad9440a5356167ff00fd3e9549d733634864a
|
|
| MD5 |
077248c8e1a6f96dc77e463aed3417e8
|
|
| BLAKE2b-256 |
96ad501b4fa1a7a7da228645b145db7132112e6cf8b2daf66b1e739347dd6e40
|
File details
Details for the file jentic_apitools_llm-1.0.0a7-py3-none-any.whl.
File metadata
- Download URL: jentic_apitools_llm-1.0.0a7-py3-none-any.whl
- Upload date:
- Size: 22.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2844550e39e875091722ae939e3b355d9264f0eb66acd30f2b3ed8a20116bb7
|
|
| MD5 |
88465af7ed7f4d54e3953c55fa6aa42b
|
|
| BLAKE2b-256 |
32b2834f03b7fabea91124a38c5223e28bda5cf7ed99114e023bb2531a06e844
|