AI Agent Generation Library — Agents Building Agents
Project description
logosai-forge
AI Agent Generation Library — Agents Building Agents
12 agentic AI agents collaborate to generate, improve, and enhance agent code autonomously.
Installation
pip install logosai-forge
Quick Start
import asyncio
from logosai_forge import ForgeClient
async def main():
forge = ForgeClient()
# Generate a new agent
result = await forge.create_agent(
"Calculate BMI from weight and height",
test_cases=[{
"input": {"weight_kg": 70, "height_m": 1.75},
"expected": {"bmi": 22.9, "category": "normal"}
}]
)
print(result.code)
# Fix a broken agent
result = await forge.improve_agent(broken_code, {
"error_type": "logic_error",
"error_message": "Expected approved but got denied",
"test_input": {"score": 750},
"expected_output": {"decision": "approved"},
"actual_output": {"decision": "denied"},
})
print(result.diff)
# Add missing functions
result = await forge.enhance_agent(
existing_code,
"Add multiply and divide methods"
)
print(result.added_functions) # ['_multiply', '_divide']
asyncio.run(main())
Features
| Method | Purpose | Example |
|---|---|---|
create_agent() |
Generate new agent from query | "Calculate shipping cost" |
improve_agent() |
Fix bugs from failure feedback | Inverted condition, wrong formula |
enhance_agent() |
Add missing logic/functions | "Add caching", "Add error handling" |
Requirements
- Python 3.10+
- Google API Key (
GOOGLE_API_KEYenv var) for Gemini LLM - LogosAI framework (optional, for agent execution)
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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 logosai_forge-0.1.0-py3-none-any.whl.
File metadata
- Download URL: logosai_forge-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.3 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad03cf0fbd6d0a28da5d7f5b0055527822756c9f568c6974b36b54013ccd0dc2
|
|
| MD5 |
e1ac656eab4268f260870dffb1709451
|
|
| BLAKE2b-256 |
c03283c481b19b2d9a465acd0683fc326a5dd5f25682351e07fc1d7ee06f498c
|