Metadata-Version: 2.1
Name: judini
Version: 0.0.2
Summary: Judini python package
Home-page: https://github.com/JudiniLabs/judini-python.git
Author: Daniel Avila
Author-email: daniel@judini.ai
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# Judini python package

## Install

``` pip install judini ```

## Use

``` python

# import
from judini import Judini

def main():
    # Replace with your actual API key and URL ID
    api_key = "your_api_key_here"
    agent_id = "your_agent_id_here"

    # Initialize the Judini class
    judini_instance = Judini(api_key, agent_id)

    # Optional: update API key or URL ID if needed
    judini_instance.set_api_key("new_api_key")
    judini_instance.set_agent_id("new_agent_id")

    # create the user prompt
    question = "Who is the President of the United States?"

    # Make a POST request
    response = judini_instance.completion(question)

    # Handle the response as needed
    print(response)

if __name__ == "__main__":
    main()
```
