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.0a25.tar.gz (18.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.0a25-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jentic_apitools_llm-1.0.0a25.tar.gz
  • Upload date:
  • Size: 18.0 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.0a25.tar.gz
Algorithm Hash digest
SHA256 f51b10fbd01386b5dd8feb84d61e5a5d3474077bab8685a3928c83901d3e1d70
MD5 1d80e1a84349f0b7c2615b569887704a
BLAKE2b-256 616e32b0c1876a9b0a9cd5739062ae55910dcc5e96a531267b303318450500d2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for jentic_apitools_llm-1.0.0a25-py3-none-any.whl
Algorithm Hash digest
SHA256 51a5f37fac64923628f627ba6715504baaff384e191ab23547f828cb599261a2
MD5 5d120fe7cb6f9f2af3e4b97c98b4d8f9
BLAKE2b-256 3cc156b26961a1e889be2bf417e22b0989a829b16c4ae1deabe8af07051d89e2

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