Skip to main content

No project description provided

Project description

Green Agent

Library providing uniform (mostly) abstration across foundation-models APIs + nice "interface" helpers for running experiments or crafting your own ChatGPT-style UI.

For now it supports chat-tuned LLMs from OpenAI and Google (Vertex AI) - more stuff to come.

Usage

Inside a jupyter notebook:

import green_agent as ga

ag1 = ga.AgentNbUI(ga.OpenAIAgent(
    "You are a sarcastic but helpful assistant.",
    model="gpt-3.5-turbo"
))
ag1.asks("Which foods would you suggest trying when visiting Lyon, France?")

How to develop

First time:

poetry install --with test dev
poetry shell
python -m ipykernel install --user --name green-agent

In general:

poetry shell

Notebooks:

jupyter notebook  # classic UI
jupyter lab  # modern UI

Managing dependencies with Poetry

poetry add <my-dependency>
poetry add <my-dependency> --group dev
poetry add <my-dependency> --group test
poetry export -o all-requirements.txt

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

green_agent-0.4.0.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

green_agent-0.4.0-py3-none-any.whl (6.2 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