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.10.tar.gz (28.4 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.10-py3-none-any.whl (41.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for paaf-0.1.10.tar.gz
Algorithm Hash digest
SHA256 a37c41016cb8427d4074359212c6cb36ed5a87fe1398f2510478662817cb42cf
MD5 1ca840d25a00de20572394f2232caf86
BLAKE2b-256 295797387dec22520521183280a97dce9fe1ab3e6e16140bc6be9cada40622b3

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for paaf-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 65ab19548fb32558a14ea30381874bbdd8ef8ebf0d6f15e58f446ae0695c8fd6
MD5 55fa104365770da2d24fa32fbe09fc86
BLAKE2b-256 8b757f2185f445832fba6c26401c39647eb47a91d2488386822b20f209858d3a

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