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)
Built Distribution
Close
Hashes for green_agent-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83c93aad89d96720938c64c1c187007b02d27f483cfb85a60d8775c8778a7d01 |
|
MD5 | 8319b48bf7b1b27ad9ae6f4332e65346 |
|
BLAKE2b-256 | b42fbbd672d3dd742377d051f33b693bce125d9b8d925afda56dcce54c65cd43 |