Skip to main content

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_KEY env var) for Gemini LLM
  • LogosAI framework (optional, for agent execution)

Project details


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

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

logosai_forge-0.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for logosai_forge-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e251cf2cd9e781ef948c0307b8292a803531fb578deac40066a2cdc7aaed3142
MD5 e1f883f6e60bbced488f41689e9bceba
BLAKE2b-256 1addcb664eb8f920f743aa09a9c0ae8f276a44681ca4a09ffd879f0f900712b9

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