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.5.tar.gz (23.2 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.5-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for paaf-0.1.5.tar.gz
Algorithm Hash digest
SHA256 6d382f61856a1bb20e418490bbcf65617ea5c5d1fe9b6b188900c93efb0bb3e6
MD5 db41bfa10622d7df93b5f03284397c79
BLAKE2b-256 2540242042175f1a06bdf21766791fe43a971b40bc3eafaa7ba51be7019f3b49

See more details on using hashes here.

File details

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

File metadata

  • Download URL: paaf-0.1.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 eed369a64b65635c0cd08a10c0e9fd2ba4bd3b8bf0b8b20c5b38b8b795e21966
MD5 15e51366b86e08abfeda82d184971771
BLAKE2b-256 63cef4f770b7bd98c92a8e215ea437316b04e4112a6aae5b5cce6925eb9152cb

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