root/agent-smart-home-system/: room-agent-0.2.0 metadata and description

Simple index Newer version available

房间智能体, 支持 Google A2A 服务协议.

description_content_type text/markdown
requires_dist
  • python-dotenv>=1.0.0
  • pydantic>=2.5.0
  • pyyaml>=6.0.0
  • langchain-core>=1.0.0
  • langgraph>=1.0.0
  • langchain-openai>=1.0.0
  • langchain-mcp-adapters>=0.1.0
  • paho-mqtt>=2.1.0
  • a2a-sdk[http-server]>=0.3.25
  • llm-json-parse>=0.1.0
  • pytest>=9.0.2
requires_python >=3.12

Because this project isn't in the mirror_whitelist, no releases from root/pypi are included.

File Tox results History
room_agent-0.2.0-py3-none-any.whl
Size
23 KB
Type
Python Wheel
Python
3
room_agent-0.2.0.tar.gz
Size
20 KB
Type
Source

Room Agent

当前 room-agent 已切到新的 LangGraph 工作流骨架。旧的数字人 / WebSocket / 前端接入说明已经失效,不再适用。

当前能力

当前最小流程如下:

其中:

依赖安装

在仓库根目录执行:

uv sync --project room-agent

如果你只想跑单次 CLI 或服务启动,推荐都从项目根目录用 --project room-agent 调用。

配置文件

当前运行需要两份配置:

示例文件:

注意:

运行单次集成测试 CLI

从仓库根目录执行:

uv run --project room-agent python room-agent/app/test_cli.py "你好" \
  --config room-agent/config/examples/room_agent.example.yaml \
  --llm-config room-agent/config/examples/llm.example.yaml

成功时会输出 graph 最终 state 的 JSON。

如果 low_cost 模型不可用,会直接报错:

ValueError: Low-cost LLM provider is unavailable.

这通常说明:

启动服务

当前服务入口仍然是:

从仓库根目录启动:

ROOM_AGENT_CONFIG_PATH=room-agent/config/examples/room_agent.example.yaml \
ROOM_AGENT_LLM_CONFIG_PATH=room-agent/config/examples/llm.example.yaml \
uv run --project room-agent python room-agent/app/server.py

说明:

开发约定

LLM 节点开发规范见:

其中最重要的约束有两条:

现状说明

当前仓库状态适合继续做以下开发:

不建议再参考旧版 room-agent 的历史业务结构,新的 graph 方案已经作为后续实现基线。