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.0.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.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: matrix_agents_hub-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 75b3d75dbbf2306143a1208bf8c5ca715bc5fe96a0bca967d3ee5f45c94647cb
MD5 9cfad022927a9715afc0a734ea541c79
BLAKE2b-256 cf850f4d838963b65a8347632b5833b411f7550daed69142a719e15b7f79bb71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for matrix_agents_hub-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 12147e165fea865cedfb9fa28426355b3bee5c67819f2e0fe9cb888d5af66f67
MD5 96be981c19bbf098ea9e2813adb0f615
BLAKE2b-256 0dac634599e165d3d0387bf9a5025475ebc2e83e64ef5976816ea6d3566ece89

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