Skip to main content

A lightweight LLM agent framework with standard and structured tool support use, prompt management, and support for OpenAI.

Project description

๐Ÿง  Bruce Agent

AgentX is a lightweight, extensible agentic framework for building custom LLM agents with structured tool use, prompt templates, and integration with OpenAI and Gemini models.

๐Ÿš€ Features

  • ๐Ÿ” Custom reasoning loop (AgentRunner)
  • ๐Ÿงฉ Structured tool execution (Pydantic-based)
  • ๐Ÿ’ฌ Prompt templating and management
  • ๐Ÿ”Œ LLM-agnostic: supports OpenAI function calling and Google Gemini
  • ๐Ÿช„ Easy-to-use API for building agents

๐Ÿ“ฆ Installation

published to PyPI:

pip install AgentX-Dev

Example use

from AgentXL import AgentRunner, AgentType,ChatModel
from pydantic import BaseModel
from AgentXL.Tools import StructuredTool
# Define a sample tool
class MultiplyTool(StructuredTool):
    name = "multiply"
    description = "Multiply two numbers"

    class Schema(BaseModel):
        a: int
        b: int

    def run(self, a: int, b: int) -> int:
        return a * b

# Create chat model and agent
ReAct=AgentType.ReAct
chat_model = ChatModel.GPT(model="gpt-4", temperature=0.7)
tools = [MultiplyTool()]
agent = AgentRunner(model=chat_model,Agent=ReAct, tools=tools)

response = agent.Initialize("What is 5 times 8?")
print(response.content)
โ”œโ”€โ”€ src/
โ”‚   โ””โ”€โ”€ bruce_framework/
โ”‚       โ”œโ”€โ”€ __init__.py
โ”‚       โ”œโ”€โ”€ agent/
โ”‚       โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚       โ”‚   โ””โ”€โ”€ agent.py
โ”‚       โ”œโ”€โ”€ runner/
โ”‚       โ”‚   โ”œโ”€โ”€ __init__.py
โ”‚       โ”‚   โ””โ”€โ”€ agent_run.py
โ”‚       โ””โ”€โ”€ chatmodel.py
โ”œโ”€โ”€ README.md
โ”œโ”€โ”€ LICENSE
โ””โ”€โ”€ pyproject.toml

๐Ÿ“š Documentation (Coming Soon)

More tutorials, tool examples, and structured prompting guides coming soon.

๐Ÿง‘โ€๐Ÿ’ป Author

Bruce-Arhin Shadrach

๐Ÿ“ง brucearhin098@gmail.com

๐ŸŒ GitHub

๐Ÿ“ License MIT License

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

agentx_dev-0.1.1.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

agentx_dev-0.1.1-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file agentx_dev-0.1.1.tar.gz.

File metadata

  • Download URL: agentx_dev-0.1.1.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for agentx_dev-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e880ff27a08505ecae6325fcfbc1a1e7278eed730644fc3b4a58d0f59bec46a3
MD5 1696e11387493d269790bff73dbb9de9
BLAKE2b-256 21e1f9175ad0d0bbaf9589642049eea7ff487d6a42f0b417305261cfa297c77c

See more details on using hashes here.

File details

Details for the file agentx_dev-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: agentx_dev-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for agentx_dev-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eb656df614b16fd875611e2f5219e7d4d259982f7e60e14a52f5979b80bab08e
MD5 245da8b5c1a7a1c5f54a1a65401dabf5
BLAKE2b-256 d9810c6442cfb0e51e28e7c17c550439b62f9ea41ef92961e040bda5cc8e4083

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