mirror of
https://gitcode.com/JianFeeeee/HomeAgent.git
synced 2026-10-03 15:53:56 +00:00
IO 抽象层增强:非文本输入支持 + waiter CLI 重写
PluginSDK: - 添加 InjectInput / InjectInputSync / InjectInterrupt 泛型接口 - 插件现在可注入 image/audio/file 等任意类型输入 Provider: - 添加 ContentBlock / ImageURL / AudioURL 类型 - Message 增加 Blocks 字段,Content 在非空 Blocks 时序列化为数组(多模态格式) Agent: - handleInput 新增 image/audio 类型分发 → processMediaInput - processMediaInput 将媒体数据附着到对话上下文,LLM 自主决策处理策略 - 新增内置工具:describe_image / transcribe_audio / ocr_image(pendingMedia 驱动) - 工具仅当有未处理媒体数据时注册,通过 Provider 直接调用多模态模型 Config: - 新增 InputProcessingConfig(image/audio 处理配置) - 含 fallback_provider / describe_prompt / ocr_enabled 等选项 Waiter CLI 重写: - 配置文件 ~/.config/homeagent/cli.yaml(自动发现 socket) - 原始终端行编辑 + 命令历史持久化 + 彩色输出 - 内置命令:/help /reconnect /connect /remote /local /prompt - 断线自动重连
This commit is contained in:
18
README.md
18
README.md
@ -11,13 +11,25 @@
|
||||
|
||||
```bash
|
||||
# 构建
|
||||
make build
|
||||
make build build-cli
|
||||
|
||||
# 启动内核(需要 DeepSeek API 密钥)
|
||||
DEEPSEEK_API_KEY="sk-xxx" ./build/homed -data /tmp/ha
|
||||
|
||||
# 在另一个终端聊天
|
||||
echo "你好" | ./build/waiter -socket /tmp/ha/cli.sock
|
||||
# 交互模式(自动发现 socket)
|
||||
./build/waiter
|
||||
|
||||
# 或单条消息
|
||||
echo "你好" | ./build/waiter
|
||||
```
|
||||
|
||||
配置文件 `~/.config/homeagent/cli.yaml`:
|
||||
|
||||
```yaml
|
||||
mode: auto # auto / local / remote
|
||||
colors: true
|
||||
history_size: 1000
|
||||
prompt: "waiter> "
|
||||
```
|
||||
|
||||
## 架构一句话
|
||||
|
||||
Reference in New Issue
Block a user