Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

matrix_agents_hub-0.1.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

matrix_agents_hub-0.1.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file matrix_agents_hub-0.1.1.tar.gz.

File metadata

  • Download URL: matrix_agents_hub-0.1.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.0rc2

File hashes

Hashes for matrix_agents_hub-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ab03f75dfdf6203dcd3398a44d00dd197bc793e6afd72d165065b56901f604ce
MD5 bde216faeca18538158f41587711f411
BLAKE2b-256 bc2c1be98a0235796c1bf0f7b9b7e8aa119b2119faa8d5a662cfcaf5eb909b18

See more details on using hashes here.

File details

Details for the file matrix_agents_hub-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for matrix_agents_hub-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8bd62ea1a5a66d45cd06a97e6f3e17b3ace3fcb14997aa2a53c6e6e5d56123f
MD5 e5f24f52a9855618d4c521017be9f197
BLAKE2b-256 abe2501954957812755e1410960f8cdb075ca6f4fcdd846652236be83e4f4ac7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page