32 lines
850 B
Markdown
32 lines
850 B
Markdown
---
|
|
title: "ToolStreaming"
|
|
type: concept
|
|
tags:
|
|
- "hermes-agent"
|
|
- "streaming"
|
|
- "ux"
|
|
sources: []
|
|
last_updated: 2026-04-20
|
|
---
|
|
|
|
## Overview
|
|
|
|
ToolStreaming 是 Hermes Agent 在流式响应模式下,通过 API Server 向客户端实时推送工具执行进度信息的功能。当 Agent 调用工具(终端、文件操作、网页搜索等)时,对应工具的 emoji 和关键参数会作为内联标记在最终回复前插入到流中。
|
|
|
|
## How It Works
|
|
|
|
1. Agent 执行工具时,立即将工具标记(如 `` `💻 ls -la` ``)写入响应流
|
|
2. 工具标记在流中出现早于最终回复
|
|
3. 用户可见 Agent "正在做什么",提升透明度
|
|
|
|
## Example Output
|
|
|
|
```
|
|
`💻 ls -la` `🔍 Python 3.12 release` `📁 read_file src/main.py` ...
|
|
[最终回复正文]
|
|
```
|
|
|
|
## See Also
|
|
- [[APIServer]]
|
|
- [[open-webui-hermes-agent]]
|