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.3.tar.gz (20.3 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.3-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for paaf-0.1.3.tar.gz
Algorithm Hash digest
SHA256 db4c7cf66b61e5ac606ebcc2933ec70ca291275b60bbb0936ff180b0e06ef167
MD5 d7d14195f9e6c2f2eae0a9f813870cbf
BLAKE2b-256 88fa1e19852d185264c575d6aa7d4bfed563ea1351ecc7b6fd4c880cfab4508a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for paaf-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a3c0888f2291936220c77f0b5948f27c4e53ece7faeba58b5fb847d53539b3cd
MD5 42c175b89771a08715c35ebaa7596ae0
BLAKE2b-256 ed87de3ff2eac5fd541d4caacd61d53b7db14373df0f827344c9479ab921a02c

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