Skip to main content

A flexible agent library.

Project description

Agential

codecov

Features

Our primary goal is to provide easy-to-use and clean implementations of popular LLM-based agent methods: an encyclopedia! This library is one of our contributions for our research project empirically surveying and investigating the performance of these methods across a diverse set of reasoning/decision-making tasks. Learn more about this here!

  • Easy-to-Use Interface: Provides intuitive and user-friendly functions for rapid prototyping and development.

  • Clean Functions: Offers clean and well-structured functions, promoting readability and maintainability of code.

  • Modularized Implementations: Includes modularized implementations of popular LLM-based agents and agent-related methods, allowing users to leverage cutting-edge innovations from the literature.

Getting Started

First, install the library with pip:

pip install agential

Next, let's query the ReActAgent!

question = 'Who was once considered the best kick boxer in the world, however he has been involved in a number of controversies relating to his "unsportsmanlike conducts" in the sport and crimes of violence outside of the ring?'

llm = ChatOpenAI(openai_api_key="YOUR_API_KEY")
agent = ReActAgent(llm=llm)
out = agent.generate(question=question)

Project Organization


├── agential                       <- Source code for this project.
│   ├── cog   
│   │   ├── agent                  <- Model/agent-related modules.
│   │   │   
│   │   ├── eval                   <- Agent core modules.
│   │   │   
│   │   ├── functional                  
│   │   │
│   │   ├── modules           
│   │   │   ├── memory             <- Memory-related modules.
│   │   │   ├── plan               <- Planning-related modules.
│   │   │   ├── reflect            <- Reflecting-related modules.
│   │   │   └── score              <- Scoring-related modules.
│   │   │
│   │   ├── persona             
│   │   │
│   │   └── prompts             
│   │
│   └── utils                      <- Utility methods.
│       
├── docs                           <- An mkdocs project.
│
├── models                         <- Trained and serialized models, model predictions,
│                                          or model summaries.
│       
├── notebooks                      <- Jupyter notebooks. Naming convention is a number 
│                                    (for ordering), the creator's initials, and a short `-` delimited │ description, e.g. `1.0-jqp-initial-data-exploration`.
│  
│
├── references                     <- Data dictionaries, manuals, and all other explanatory materials.
│
├── reports                        <- Generated analysis as HTML, PDF, LaTeX, etc.
│   └── figures                    <- Generated graphics and figures to be used in reporting.
│
└── tests                          <- Tests.

Contributing

If you want to contribute, please check the contributing.md for guidelines!

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

agential-0.0.5.tar.gz (182.5 kB view details)

Uploaded Source

Built Distribution

agential-0.0.5-py3-none-any.whl (240.4 kB view details)

Uploaded Python 3

File details

Details for the file agential-0.0.5.tar.gz.

File metadata

  • Download URL: agential-0.0.5.tar.gz
  • Upload date:
  • Size: 182.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.5 Windows/10

File hashes

Hashes for agential-0.0.5.tar.gz
Algorithm Hash digest
SHA256 3111519e46a530a4151b243ca46da9c1e2f007703fb5892bd2f8c297869d1dba
MD5 69aed1df0291971c0435815687c2f56f
BLAKE2b-256 72aeece922de4ba583442ee669915237549e55604158151bd06173ba848d9626

See more details on using hashes here.

File details

Details for the file agential-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: agential-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 240.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.5 Windows/10

File hashes

Hashes for agential-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d0693c01bc57fb37202b0fe51dde00792b706b51143cd57facaccf915a14d145
MD5 a4d631c36b05076cdc1fc81e4e63e80f
BLAKE2b-256 dc39725a59d46a36867eaf6d214e03574bffa60653d072f605b182d513108f5d

See more details on using hashes here.

Supported by

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