Skip to main content

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

Release files for green-agent 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for green-agent 0.4.0
File Size Uploaded
green_agent-0.4.0.tar.gz 4.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for green-agent 0.4.0
File Interpreter ABI Platform
green_agent-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.0 kB

Release files / green_agent-0.4.0.tar.gz

Download URL green_agent-0.4.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
9054b456c84d46ad652eca927645d12ea1b63ee760b47d631a06a4e6ea965a50
BLAKE2b-256 checksum
How to use checksums
7c60e7b07b862158cbd9e218d681235f54e4206e927b3e9ffbc11eab6f2d03f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.2 Darwin/22.5.0

Release files / green_agent-0.4.0-py3-none-any.whl

Download URL green_agent-0.4.0-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83c93aad89d96720938c64c1c187007b02d27f483cfb85a60d8775c8778a7d01
BLAKE2b-256 checksum
How to use checksums
b42fbbd672d3dd742377d051f33b693bce125d9b8d925afda56dcce54c65cd43
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.2 Darwin/22.5.0

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page