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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e880ff27a08505ecae6325fcfbc1a1e7278eed730644fc3b4a58d0f59bec46a3
|
|
| MD5 |
1696e11387493d269790bff73dbb9de9
|
|
| BLAKE2b-256 |
21e1f9175ad0d0bbaf9589642049eea7ff487d6a42f0b417305261cfa297c77c
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb656df614b16fd875611e2f5219e7d4d259982f7e60e14a52f5979b80bab08e
|
|
| MD5 |
245da8b5c1a7a1c5f54a1a65401dabf5
|
|
| BLAKE2b-256 |
d9810c6442cfb0e51e28e7c17c550439b62f9ea41ef92961e040bda5cc8e4083
|