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.11.tar.gz
(28.5 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.11-py3-none-any.whl
(41.6 kB
view details)
File details
Details for the file paaf-0.1.11.tar.gz.
File metadata
- Download URL: paaf-0.1.11.tar.gz
- Upload date:
- Size: 28.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9e02d6a9a5a8c1d1a714acf733daa38248334832a71e5c05b3010b99abf36e5
|
|
| MD5 |
05b802ed9a9e3d2295c95e2b89120b2a
|
|
| BLAKE2b-256 |
c1acb6cb047a0bafccfdee3ba9977d70b5e267d7dd69bb69da4de119a85516a4
|
File details
Details for the file paaf-0.1.11-py3-none-any.whl.
File metadata
- Download URL: paaf-0.1.11-py3-none-any.whl
- Upload date:
- Size: 41.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fedc968f50f44ad4b7bcb9c914e228019a26fd94763165d3499942b13e7ac419
|
|
| MD5 |
c031845cfa9e49c839aa1904f5836fad
|
|
| BLAKE2b-256 |
820f69c10e839a4b873319743e7df6672295f8489094aa2bdc00d146bb89f270
|