Add your description here
Project description
PAAF
PAAF (Peter Akande Agentic Framwork) is a simple Agentic framwork built to be used for all my LLM applications.
Example usage
from paaf.agents.react import ReactAgent
from paaf.llms.openai_llm import OpenAILLM
from paaf.tools.tool_registory import ToolRegistry
from serper import search as serper_search
from wiki import wiki_search
tool_registory = ToolRegistry()
tool_registory.register_tool(serper_search)
tool_registory.register_tool(wiki_search)
@tool_registory.tool()
def my_name() -> str:
"""
Get the name of the user.
Returns:
str: The name of the user.
"""
return "John Doe"
if __name__ == "__main__":
llm = OpenAILLM()
react_agent = ReactAgent(
llm=llm,
tool_registry=tool_registory,
max_iterations=5,
)
response = react_agent.run("Who is older, Cristiano Ronaldo or Lionel Messi?")
print("Response:", response.content)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
paaf-0.1.0.tar.gz
(21.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
paaf-0.1.0-py3-none-any.whl
(26.9 kB
view details)
File details
Details for the file paaf-0.1.0.tar.gz.
File metadata
- Download URL: paaf-0.1.0.tar.gz
- Upload date:
- Size: 21.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fba88c365a36760426bb1052f66c0551cd688b91e4e04e9248b0ac5f73877447
|
|
| MD5 |
bef896bacc005fc6c8401ed9ac6fa77c
|
|
| BLAKE2b-256 |
3de280c42603e08d7ed0d4a184c81e2f52c4529da30ced774efe1c9ef55f3489
|
File details
Details for the file paaf-0.1.0-py3-none-any.whl.
File metadata
- Download URL: paaf-0.1.0-py3-none-any.whl
- Upload date:
- Size: 26.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5ab52f610638f61243280f993f98077ba43834a42aaf3a5eb3d22f27e1b9f41
|
|
| MD5 |
510f0f26c5a6f8e3e3cf2e3a4a27b47e
|
|
| BLAKE2b-256 |
1dbe3305c2292d3284a529defb58739edcdf6221f17dfcdb51082950a64b31e8
|