Python SDK for building LLM-powered agents across multiple providers.
Project description
Kneo Agent
Kneo Agent is a Python SDK for building LLM-powered agents across multiple providers with one consistent API.
It supports:
- bridge-style runtimes where Kneo owns the execution loop
- native runtimes backed by provider SDK behavior
- adapter-style wrappers around existing provider objects
- workflows for orchestrating multi-step or multi-agent runs
Requirements
- Python 3.12+
Installation
Install the core package from PyPI:
pip install kneo-agent
Install with optional provider extras when needed:
pip install "kneo-agent[openai]"
pip install "kneo-agent[langchain]"
pip install "kneo-agent[google-adk]"
pip install "kneo-agent[all]"
Quick Start
import asyncio
from kneo_agent import AgentBuilder
from kneo_agent.patterns import BridgeAgentFactory
runtime = BridgeAgentFactory.for_openai(model="gpt-4o", strategy="react")
agent = (
AgentBuilder()
.with_name("Assistant")
.with_system_prompt("You are a helpful assistant.")
.use_bridge(runtime)
.build()
)
async def main() -> None:
reply = await agent.chat("What is 2 + 2?")
print(reply)
asyncio.run(main())
Optional Features
openai: OpenAI Agents integrationlangchain: LangChain integrationgoogle-adk: Google ADK integrationall: all optional provider integrations
Package Contents
The published distribution contains the kneo_agent package and typed package metadata for downstream users.
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 kneo_agent-1.0.1.tar.gz.
File metadata
- Download URL: kneo_agent-1.0.1.tar.gz
- Upload date:
- Size: 46.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6d1445ee2e1e19b500ca2e905b28eb4fc955c233d0ea47248c33fab1527ef0b
|
|
| MD5 |
f8ef6e1d9d5e6dc500d6c3f7f7aa4019
|
|
| BLAKE2b-256 |
11e9129a4da11c2732a05fb54c5a40b0af76a7ad03bcc1ff966b5e57152d741a
|
File details
Details for the file kneo_agent-1.0.1-py3-none-any.whl.
File metadata
- Download URL: kneo_agent-1.0.1-py3-none-any.whl
- Upload date:
- Size: 63.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
23bfa256729522d646b2a9a9507eaccd713747b722a4fd42248464b2d95daa9d
|
|
| MD5 |
ed9fb2ef82a97a22be890d5206a65a9c
|
|
| BLAKE2b-256 |
03d57f7d18733cf60a8827b59bc523cbe36dfe27ee2d176a787194a7f0586578
|