module/file.py:function_name本指南介绍如何集成外部 Agent(运行在不同机器或使用其他 Agent 框架)。
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!")