mtllm


Namemtllm JSON
Version 0.3.3 PyPI version JSON
download
home_pageNone
SummaryMTLLM Provides Easy to use APIs for different LLM Providers to be used with Jaseci's Jaclang Programming Language.
upload_time2024-11-07 16:29:12
maintainerJason Mars
docs_urlNone
authorJason Mars
requires_pythonNone
licenseMIT
keywords llm jaclang jaseci mtllm
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # MTLLM API library

[![PyPI version](https://img.shields.io/pypi/v/mtllm.svg)](https://pypi.org/project/mtllm/) [![tests](https://github.com/Jaseci-Labs/mtllm/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/Jaseci-Labs/mtllm/actions/workflows/test.yml)

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](https://github.com/Jaseci-Labs/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](https://jaseci-labs.github.io/mtllm/).

## Installation

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

```sh
# install from PyPI
pip install mtllm
```

## Usage

Refer the Documentation for detailed usage instructions.

### Using Different LLMs
```py
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:

```sh
export OPENAI_API_KEY="your-api-key"
```
### Using Tools
```py
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]);
```

## Contributing
Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "mtllm",
    "maintainer": "Jason Mars",
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": "jason@jaseci.org",
    "keywords": "llm, jaclang, jaseci, mtllm",
    "author": "Jason Mars",
    "author_email": "jason@jaseci.org",
    "download_url": "https://files.pythonhosted.org/packages/81/45/9d42f3a51beec395d4c3d27f1c10f0f40bb0af6b569c9043bf9052a472c2/mtllm-0.3.3.tar.gz",
    "platform": null,
    "description": "# MTLLM API library\n\n[![PyPI version](https://img.shields.io/pypi/v/mtllm.svg)](https://pypi.org/project/mtllm/) [![tests](https://github.com/Jaseci-Labs/mtllm/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/Jaseci-Labs/mtllm/actions/workflows/test.yml)\n\nThe MTLLM Python library provides convenient access to a large number of easy to use and customizable APIs to be used in Jaseci's [Jaclang](https://github.com/Jaseci-Labs/jaclang) by llm feature.\nThe Library provides automatic output fixing, output type validation, different prompting techniques, and more.\n\n## Documentation\n\nThe documentation on how to use this library with Jaseci's Jaclang can be found [here](https://jaseci-labs.github.io/mtllm/).\n\n## Installation\n\n> [!IMPORTANT]\n> Though this is can be used with python projects, it is primarily intended to be used with Jaseci's Jaclang.\n\n```sh\n# install from PyPI\npip install mtllm\n```\n\n## Usage\n\nRefer the Documentation for detailed usage instructions.\n\n### Using Different LLMs\n```py\nimport:py from mtllm.llms, OpenAI;\n\nglob llm = OpenAI();\n\ncan \"Translate English to French\"\ntranslate(word: \"English Word\": str) -> \"French Word\": str by llm();\n```\n\nBased on your LLM of choice, make sure to set the `API Key` in the environment variable. For example, for OpenAI:\n\n```sh\nexport OPENAI_API_KEY=\"your-api-key\"\n```\n### Using Tools\n```py\nimport:py from mtllm.llms, OpenAI;\nimport:py from mtllm.tools, wikipedia;\n\nglob llm = OpenAI();\n\ncan \"Answer History Questions\"\nhistory_qa(question: \"History Question\": str) -> \"Detailed Answer\": str by llm(tools=[wikipedia]);\n```\n\n## Contributing\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "MTLLM Provides Easy to use APIs for different LLM Providers to be used with Jaseci's Jaclang Programming Language.",
    "version": "0.3.3",
    "project_urls": null,
    "split_keywords": [
        "llm",
        " jaclang",
        " jaseci",
        " mtllm"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6a1be6a226505f3ce8764d2ae86ee174ee47db996936590d830d37515947a675",
                "md5": "81e6c24b12db543d1173912e86031f77",
                "sha256": "7897e9b44ddda0d40100b7b9a401164d024fd97b9e9c8a2d0584718dc475f91c"
            },
            "downloads": -1,
            "filename": "mtllm-0.3.3-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "81e6c24b12db543d1173912e86031f77",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 26643,
            "upload_time": "2024-11-07T16:29:11",
            "upload_time_iso_8601": "2024-11-07T16:29:11.240726Z",
            "url": "https://files.pythonhosted.org/packages/6a/1b/e6a226505f3ce8764d2ae86ee174ee47db996936590d830d37515947a675/mtllm-0.3.3-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "81459d42f3a51beec395d4c3d27f1c10f0f40bb0af6b569c9043bf9052a472c2",
                "md5": "9352cfa6bdb626ad8771452b9921334a",
                "sha256": "9e545ad3e16e813a3cdecf3a5dc0a492378ccd4df77437e48ddc38b6a4e6edbf"
            },
            "downloads": -1,
            "filename": "mtllm-0.3.3.tar.gz",
            "has_sig": false,
            "md5_digest": "9352cfa6bdb626ad8771452b9921334a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 17911,
            "upload_time": "2024-11-07T16:29:12",
            "upload_time_iso_8601": "2024-11-07T16:29:12.972071Z",
            "url": "https://files.pythonhosted.org/packages/81/45/9d42f3a51beec395d4c3d27f1c10f0f40bb0af6b569c9043bf9052a472c2/mtllm-0.3.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-07 16:29:12",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "mtllm"
}
        
Elapsed time: 0.38701s