Paaf is an Agent Framework for building AI agents
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.6.tar.gz
(23.3 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.6-py3-none-any.whl
(36.5 kB
view details)
File details
Details for the file paaf-0.1.6.tar.gz.
File metadata
- Download URL: paaf-0.1.6.tar.gz
- Upload date:
- Size: 23.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb61308ca344e374e382f4e97d1db2564a4797752c69c079f36d0363b4251f54
|
|
| MD5 |
e06efd223c4bfe25ad6e57c9b6d81a5f
|
|
| BLAKE2b-256 |
ecfebf39fa4529dedb97fddb65ca29c14716738b348c51d461f84d5a942a9046
|
File details
Details for the file paaf-0.1.6-py3-none-any.whl.
File metadata
- Download URL: paaf-0.1.6-py3-none-any.whl
- Upload date:
- Size: 36.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c6a610db60978475df532c32d769cbe7c150ed9631526a391f85a013e8f6885
|
|
| MD5 |
ee1ee8ea943426e0d6150055921c08ec
|
|
| BLAKE2b-256 |
f5ac0cbac27c57d03f8133fb5883fb0dda99bbb9dc7e142d8286ade0f42b751a
|