Skip to main content

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

Metadata

Release files for matrix-agents-hub 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for matrix-agents-hub 0.1.3
File Size Uploaded Provenance
matrix_agents_hub-0.1.3.tar.gz 4.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for matrix-agents-hub 0.1.3
File Interpreter ABI Platform
matrix_agents_hub-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 10.2 kB

Release files / matrix_agents_hub-0.1.3.tar.gz

Download URL matrix_agents_hub-0.1.3.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
099b1b075af2516008720a43e214b99f55b2fbbdc0c04eeef2863dce3df9ec4e
BLAKE2b-256 checksum
How to use checksums
04fd1490261cdb3c0b91b46c9655b5c402676fde07255828ae88c98387c69d77
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.0rc2

Release files / matrix_agents_hub-0.1.3-py3-none-any.whl

Download URL matrix_agents_hub-0.1.3-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b6654082bafca6bfbd51e3df2b02787b96882502ab6fa5e5e28625f7b5e5790
BLAKE2b-256 checksum
How to use checksums
81ff69c663f7e2952ce1b9e4cd2d67a1651f83ad8119dfe82a68d17ac01ae8cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.0rc2

Security for matrix-agents-hub 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page