Skip to main content

Judini python package

Project description

Judini Python Package

This package provides you with an easy way to interact with the Judini API in your Python applications.

Install

To install the package, simply run the following command:

pip install judini 

Usege

Below is a sample code demonstrating how to use the Judini package in your Python application:

# Import the package
from judini import Agent

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
    agent_instance = Agent(api_key, agent_id)

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

    # Create the prompt
    prompt = "Who is the President of the United States?"

    # Make a completion request
    response = agent_instance.completion(prompt)

    # Handle the response as needed
    print(response)

if __name__ == "__main__":
    main()

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

judini-0.0.5.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

judini-0.0.5-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

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