Original title: Introducing ConnectOnion: The Simplest Way to Build AI Agents with Python Functions

Introducing Connect Onion — Build AI Agents with Just Python Functions

Connect Onion is a lightweight agent framework for Python that transforms regular functions into powerful AI tools. It focuses on simplicity, transparency, and speed, no verbose chains, no overengineered agent classes, no role hierarchies. Just tools, memory, and prompts.

Why Connect Onion?

Connect Onion solves the pain points developers often face with agent SDKs like LangChain, AutoGen, and CrewAI:

Functions = Tools — no decorators, no schemas to define

Auto type inference from function annotations

Built-in system prompts, memory, trust, and iteration limits

xray decorator to visualize agent thinking

CLI support for rapid local iteration

Fully compatible with OpenAI LLMs

Other frameworks introduce layers of abstraction that make agents harder to debug and maintain. Connect Onion takes the opposite approach. Start simple, and layer complexity only if you need it.

Example: Yo

Read the original article here