No project description provided
Project description
Green Agent
Library providing uniform (mostly) abstration across foundation-models APIs + nice "interface" helpsers 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.3.1.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for green_agent-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a1d2f84c154730e505aedbff6008ccac4d222706fb60990ae247056ab7247bc |
|
MD5 | afba959abeeb724527c2bfa8b97229d1 |
|
BLAKE2b-256 | 94a708f42a78c625a001cddc2352c9bb24f33f269ee4719394e7826e7e6a5196 |