A flexible agent library.
Project description
Agential
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
├── data
│ ├── external <- Data from third party sources.
│ ├── interim <- Intermediate data that has been transformed.
│ ├── processed <- The final, canonical data sets for modeling.
│ └── raw <- The original, immutable data dump.
│
├── 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
Built Distribution
File details
Details for the file agential-0.0.4.tar.gz
.
File metadata
- Download URL: agential-0.0.4.tar.gz
- Upload date:
- Size: 86.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2193caa357a07e1df2c9300f6820dfad302da1ecf527e0bd8aaaa2ea3e0b4757 |
|
MD5 | 901c8cf125834f1a89bd968cbaeb87a3 |
|
BLAKE2b-256 | 97e5a95d1ef9a6e4db0858b5382185e4ad4060f62b7aa1a1db5d6fea30e9f9eb |
File details
Details for the file agential-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: agential-0.0.4-py3-none-any.whl
- Upload date:
- Size: 117.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.5 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0063aadf28c2dc3bfe7212e3f377055febac6e27ab9dd97f23687360033794f |
|
MD5 | 8aef1ab46166d2dccc7b835f93a1946c |
|
BLAKE2b-256 | 9899b48519ba3e4e77b88b716daf33c3722c046d960dbc5eb4d37e1c8e62a973 |