Skip to main content

No project description provided

Project description

InstantNeo

InstantNeo Logo

PyPI version Python Versions License

Build instant agents to compose intelligent systems

"I know kung fu." - Neo

What is InstantNeo?

InstantNeo is a Python library that lets you create LLM-based agents quickly and concisely, designed as components for intelligent systems. It offers a clean, direct interface for granular control over agent behavior, abstracting away provider complexity. Like Neo in The Matrix downloading skills instantly, InstantNeo lets you build agents with instant capabilities, simple to start and powerful when composed. Unlike rigid or overly-elaborated frameworks, InstantNeo draws from Marvin Minsky's 'Society of Mind' to deliver modular building blocks, letting you craft multi-agent systems your way.

Features

  • Unified Provider Interface: Switch seamlessly between models providers with consistent syntax. The library handles different API requirements behind the scenes.
  • Quick and powerful Skill Management: Define agent capabilities using simple Python decorators that transform functions into skills with metadata, descriptions, and parameter validation. Add, remove, and list skills dynamically as your agent's needs evolve.
  • Flexible Execution Modes: Control exactly how skills are executed with three modes: wait for results, fire skills in the background, or just extract arguments without execution for planning purposes.
  • Text and Image Support: Process both text and images through a single consistent API. Send images alongside prompts to vision-capable models and control the level of image analysis detail as needed.
  • Customizable Agent Settings: Modify agent behavior on-the-fly by overriding temperature, max tokens, role setup, and other parameters for specific interactions without recreating the entire agent.

Installation

InstantNeo requires specifying which providers will be installed. You can use [all] to install dependencies for all supported providers:

pip install instantneo[all]
pip install instantneo[openai]
pip install instantneo[groq]
pip install instantneo[anthropic]

Quickstart

Wake Neo Up

from instantneo import InstantNeo

neo = InstantNeo(
    provider="openai", 
    api_key="your-api-key", 
    model="gpt-4o",
    role_setup="You are Neo, the chosen one. Ready to learn anything."
)

print(neo.run("What's the Matrix?"))

Teach Him Kung Fu

from instantneo.skills import skill
from instantneo import InstantNeo

@skill(description="Execute a kung fu move", parameters={"move": "e.g., dragon punch", "intensity": "1-10"})
def kung_fu(move: str, intensity: int = 5) -> str:
    return f"Hit {move} at intensity {intensity}. I know kung fu!"

neo = InstantNeo(
    provider="anthropic",
    api_key="your-api-key",
    model="claude-3-7-sonnet-20250219",
    role_setup="You are Neo, martial arts downloaded.",
    skills=["kung_fu"]
)

print(neo.run("Three agents ahead. What move?"))

API Reference

  • InstantNeo Class: Set provider, api_key, model, role_setup, plus skills and tuning params (temperature, max_tokens, etc.).
  • run() Method: Feed it a prompt, pick an execution_mode (WAIT_RESPONSE, EXECUTION_ONLY, GET_ARGS), override settings as needed.

Details in the docs.

Architecture and Philosophy

InstantNeo leans on Minsky's "Society of Mind": small, specialized agents you connect to make something bigger. Each agent's a tool—give it a role, add skills, and weave them together. The smarts come from your coordination, not ours.

Documentation

Full scoop at instantneo.readthedocs.io, including tutorials on multi-agent setups and advanced skills.

Contributing

Fork, branch, commit, push, PR. Update tests and docs if you're adding something.

License

MIT License—check LICENSE.

"I'm trying to free your mind, Neo. But I can only show you the door. You're the one that has to walk through it." - Morpheus

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

instantneo-0.1.2.tar.gz (32.3 kB view details)

Uploaded Source

Built Distribution

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

instantneo-0.1.2-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

Details for the file instantneo-0.1.2.tar.gz.

File metadata

  • Download URL: instantneo-0.1.2.tar.gz
  • Upload date:
  • Size: 32.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for instantneo-0.1.2.tar.gz
Algorithm Hash digest
SHA256 379f7277632bf2366c82b0f73a140f88108f0293c806bd0b0e2cae1e755192a6
MD5 76831d73f2e352cc88bcc019cb5d5f9e
BLAKE2b-256 d15ca9ebd333d60bf14a525695a7a8e5c820fb5e75018a4bb5d0833db330978b

See more details on using hashes here.

File details

Details for the file instantneo-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: instantneo-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 26.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for instantneo-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 97034d6378e7739ef114c58c2c489ff328a93e27f28c580ec6eb4d4eadda68ac
MD5 cd58a5e02caf9717d7b1eadda07672e1
BLAKE2b-256 b53d8ed6f45024997bd51ec5da6eb723812380b04d025fbf65db5bcdeed167ad

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