A hub for managing AI agents
Project description
Matrix Agents Hub
Matrix Agents Hub 是一个用于管理和与各种 AI agents 交互的 Python 包。
安装
pip install matrix-agents-hub
使用示例
from matrix_agents_hub import AgentsHub, Agent
# 使用单个 Agent
agent = Agent(
api_key="your-api-key",
agent_name="agent-name"
)
response = agent.chat("你好")
# 使用 AgentsHub 管理多个 agents
agents = ["agent1", "agent2"]
hub = AgentsHub(agents)
response = hub.chat("agent1", "你好")
# 获取平台上的所有 agents
platform_agents = hub.get_platform_agents()
环境变量
MATRIX_API_KEY: API密钥(必需)MATRIX_BASE_URL: 平台服务器地址(可选,默认为 http://localhost:8099)
开发
# 克隆仓库
git clone https://github.com/yourusername/matrix-agents-hub.git
# 安装开发依赖
pip install -e .
# 运行测试
python -m pytest tests/
License
MIT
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 matrix_agents_hub-0.1.3.tar.gz.
File metadata
- Download URL: matrix_agents_hub-0.1.3.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.0rc2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
099b1b075af2516008720a43e214b99f55b2fbbdc0c04eeef2863dce3df9ec4e
|
|
| MD5 |
604eb8349ae2e4bdd44219a180c392ce
|
|
| BLAKE2b-256 |
04fd1490261cdb3c0b91b46c9655b5c402676fde07255828ae88c98387c69d77
|
File details
Details for the file matrix_agents_hub-0.1.3-py3-none-any.whl.
File metadata
- Download URL: matrix_agents_hub-0.1.3-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.0rc2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b6654082bafca6bfbd51e3df2b02787b96882502ab6fa5e5e28625f7b5e5790
|
|
| MD5 |
d733fb89af0e12b972c6d7e1c100210a
|
|
| BLAKE2b-256 |
81ff69c663f7e2952ce1b9e4cd2d67a1651f83ad8119dfe82a68d17ac01ae8cb
|