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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| green_agent-0.4.0.tar.gz | 4.8 kB | Without provenance | Details for green_agent-0.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| green_agent-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for green_agent-0.4.0-py3-none-any.whl |
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
|
Security for green-agent 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.