Accessible and customizable agent components that you can copy and paste into your apps. Free. Open Source. Use this to build your own agentic workflows.
👉 Getting Started
Install using uv:
uv add zagen
Install using pip:
pip install zagen
🤩 Feel The Magic
from zagen.agent import OpenAIAgent, OpenAIAgentConfig
from zagen.mcp import MCPServer
def get_weather(loc: str) -> Literal["Sunny", "Cloudy", "Rainy"]:
"""Get the weather of current locations"""
return "Sunny"
triage_agent = OpenAIAgent(
name="Triage Agent",
instructions="""You are the Triage Agent.
""",
mcp={
"weather": MCPServer(
type="lambda",
function=[get_weather],
),
"slack": MCPServer(
type="sse",
url="https://"
),
},
config=OpenAIAgentConfig(
model="gpt-4o",
base_url="",
api_key="",
),
)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zagen-0.1.2.tar.gz
(34.7 kB
view details)
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
zagen-0.1.2-py3-none-any.whl
(8.8 kB
view details)
File details
Details for the file zagen-0.1.2.tar.gz.
File metadata
- Download URL: zagen-0.1.2.tar.gz
- Upload date:
- Size: 34.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.6.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06eff93fc913219924662941ac9b3b1c88a816c937aed3ba48bf14ca6f60abfe
|
|
| MD5 |
0ffeacce5c390771673ed8ea6032dc4e
|
|
| BLAKE2b-256 |
8f86f2901019ada0690fce2a5f02caf74124011f2bf0fbfc4c0868daf9d7b047
|
File details
Details for the file zagen-0.1.2-py3-none-any.whl.
File metadata
- Download URL: zagen-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.6.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07aae970a4d705b5fb9ddc4f03a719f38910256ead22e56bacae43bccf871aef
|
|
| MD5 |
58bcb6411b90603e27f7966906959be4
|
|
| BLAKE2b-256 |
8157d0070e15da8a8e418d2a7bdfa62b346905dddbfa8872ac348240e209dbd3
|