客户端 SDK: gateway/client/python/
module/file.py:function_namePython SDK 供外部 Agent 调用 Gateway HTTP API。
适用场景:
不适用场景:
pip install gateway-client
from gateway.client.python import GatewayClient
client = GatewayClient("http://gateway-host:8000")
conversations = client.list_conversations()
messages = client.get_messages(conversation_id)
client.send_message(conversation_id, text="Hello!")
gateway/client/python/
├── client.py # GatewayClient 主类
├── tools.py # 工具函数
└── cli.py # CLI 工具