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.7.tar.gz
(25.4 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.7-py3-none-any.whl
(39.3 kB
view details)
File details
Details for the file paaf-0.1.7.tar.gz.
File metadata
- Download URL: paaf-0.1.7.tar.gz
- Upload date:
- Size: 25.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e720483518cbdbbcd5ba24ec2fe789b161225db905001226b45866166e9a690
|
|
| MD5 |
4977275e66d8f7e16628c8376deb69f6
|
|
| BLAKE2b-256 |
370b8bd0064f72e43d4642941552a0545d0e8744cc87c8a6229908411438ee6a
|
File details
Details for the file paaf-0.1.7-py3-none-any.whl.
File metadata
- Download URL: paaf-0.1.7-py3-none-any.whl
- Upload date:
- Size: 39.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8f910d801c00e79c0fc0aaf4a9523f4190e39a87d8c86aaa62029f1632f8c5a
|
|
| MD5 |
ad0a1f9eb0824272fbb0c2b51b6c1229
|
|
| BLAKE2b-256 |
5f73084bbb47c015b0812242183be15c4f2954a5ff154c6b1339fd567b249123
|