Skip to main content

MTLLM Provides Easy to use APIs for different LLM Providers to be used with Jaseci's Jaclang Programming Language.

Project description

MTLLM API library

PyPI version

The MTLLM Python library provides convenient access to a large number of easy to use and customizable APIs to be used in Jaseci's Jaclang by llm feature. The Library provides automatic output fixing, output type validation, different prompting techniques, and more.

Documentation

The documentation on how to use this library with Jaseci's Jaclang can be found here.

Installation

[!IMPORTANT] Though this is can be used with python projects, it is primarily intended to be used with Jaseci's Jaclang.

# install from PyPI
pip install mtllm

Usage

The full API of this library can be found here.

Using Different LLMs

import:py from mtllm.llms, OpenAI;

glob llm = OpenAI();

can "Translate English to French"
translate(word: "English Word": str) -> "French Word": str by llm();

Based on your LLM of choice, make sure to set the API Key in the environment variable. For example, for OpenAI:

export OPENAI_API_KEY="your-api-key"

Using Tools

import:py from mtllm.llms, OpenAI;
import:py from mtllm.tools, wikipedia;

glob llm = OpenAI();

can "Answer History Questions"
history_qa(question: "History Question": str) -> "Detailed Answer": str by llm(tools=[wikipedia]);

Supported LLMs and Tools

TBA

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

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

mtllm-0.1.12.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

mtllm-0.1.12-py3-none-any.whl (14.2 kB view details)

Uploaded Python 3

File details

Details for the file mtllm-0.1.12.tar.gz.

File metadata

  • Download URL: mtllm-0.1.12.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.5.0-1022-azure

File hashes

Hashes for mtllm-0.1.12.tar.gz
Algorithm Hash digest
SHA256 5dead54957680f261f4a569883d0c80808fec43b1f90413bc1e69212bab91694
MD5 3a6a41b9a08e60415c352522402905f6
BLAKE2b-256 e67a534ff76cf9fb81b281b8dd4eeebfb9b93d7d9cabac32787612054bfeb8ef

See more details on using hashes here.

File details

Details for the file mtllm-0.1.12-py3-none-any.whl.

File metadata

  • Download URL: mtllm-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 14.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.5.0-1022-azure

File hashes

Hashes for mtllm-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 ea45d6319b5cd1eba17c61bfb15778a93c871e0a9aadaedeee82b2537cf02f9f
MD5 bb7320249a98a4d61f3d861526907877
BLAKE2b-256 4457697526e8ea4f94c87e1b73656f5e6becc2a2adf5ea06fc9b5edbe17e9dda

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page