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.3.tar.gz (4.5 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.3-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

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

Hashes for matrix_agents_hub-0.1.3.tar.gz
Algorithm Hash digest
SHA256 099b1b075af2516008720a43e214b99f55b2fbbdc0c04eeef2863dce3df9ec4e
MD5 604eb8349ae2e4bdd44219a180c392ce
BLAKE2b-256 04fd1490261cdb3c0b91b46c9655b5c402676fde07255828ae88c98387c69d77

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for matrix_agents_hub-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8b6654082bafca6bfbd51e3df2b02787b96882502ab6fa5e5e28625f7b5e5790
MD5 d733fb89af0e12b972c6d7e1c100210a
BLAKE2b-256 81ff69c663f7e2952ce1b9e4cd2d67a1651f83ad8119dfe82a68d17ac01ae8cb

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