Metadata-Version: 2.1
Name: lazer
Version: 0.1.4
Summary: 
Author: Justin Stitt
Author-email: jstitt007@gmail.com
Requires-Python: >=3.11,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: icecream (>=2.1.3,<3.0.0)
Requires-Dist: openai (>=0.27.8,<0.28.0)
Requires-Dist: pydantic (>=1.10.9,<2.0.0)
Requires-Dist: python-dotenv (>=1.0.0,<2.0.0)
Requires-Dist: pytojsonschema (>=1.11.1,<2.0.0)
Description-Content-Type: text/markdown

# Lazer

Lazer is a Python library that provides a convenient way to expose Python functions as schemas for OpenAI chat models.

### What it Does

Allows you to more easily inform GPT about your

## Installation

To install Lazer, simply run:

```bash
pip install lazer
```

## Usage

Here is an example of how to use Lazer:

```python
from lazer import Lazer, LazerConversation

lazer = Lazer()

# GPT is now made aware of your function `qux`
@lazer.use
def qux(num: int, name: str) -> str:
    """Retrieve a number and a name from the user and compute the qux of it"""
    return str(num + len(name) * 13)

conversation = LazerConversation(lazer)
response = await conversation.talk("What is the qux of 3 and steven")
print(response)
# ... 117 ...
```

### Demo

Go check `lazer/demo/app.py` for a dummy app

To run this `python -m demo.app`


#### Authors:

* @JustinStitt
* @diamondburned

