Skip to main content

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


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.4.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

paaf-0.1.4-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

Details for the file paaf-0.1.4.tar.gz.

File metadata

  • Download URL: paaf-0.1.4.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.2

File hashes

Hashes for paaf-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c2e39cf816e1ec11b3fda3eb5cdec9767ad0539ffc7592206eee6c25fa6fbbaa
MD5 4027dd8432bfe0e3218f5124396a474e
BLAKE2b-256 2ecf6cc73b9b0fd7177ff3ade7c3b5e0485f99c6bc2422c34d30a9ff4f8d06b0

See more details on using hashes here.

File details

Details for the file paaf-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: paaf-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 36.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.2

File hashes

Hashes for paaf-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b6d30e77f5beb0ea97733379beb661990291b3935577ba3750e7e9e67691c30b
MD5 775f0d0764a581504e36c77341f64678
BLAKE2b-256 34a72f483428334602461d7683ddea172a233b3fda8cc8528977fd1523771d51

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page