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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

green_agent-0.4.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file green_agent-0.4.0.tar.gz.

File metadata

  • Download URL: green_agent-0.4.0.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.2 Darwin/22.5.0

File hashes

Hashes for green_agent-0.4.0.tar.gz
Algorithm Hash digest
SHA256 9054b456c84d46ad652eca927645d12ea1b63ee760b47d631a06a4e6ea965a50
MD5 a31ffc6bff12e9e82541bc4b69805863
BLAKE2b-256 7c60e7b07b862158cbd9e218d681235f54e4206e927b3e9ffbc11eab6f2d03f5

See more details on using hashes here.

File details

Details for the file green_agent-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: green_agent-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.2 Darwin/22.5.0

File hashes

Hashes for green_agent-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 83c93aad89d96720938c64c1c187007b02d27f483cfb85a60d8775c8778a7d01
MD5 8319b48bf7b1b27ad9ae6f4332e65346
BLAKE2b-256 b42fbbd672d3dd742377d051f33b693bce125d9b8d925afda56dcce54c65cd43

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page