llm-to-agent/docs/agent/runs-behavior.md
2026-08-21 16:33:23 +08:00

23 lines
715 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Run 与 Agent Behavior
状态todo
期望阶段P1
## 目标
使一次用户请求拥有可观察的运行边界,并为未来不同 Agent 行为留下接缝。
## 已确定
- 一次用户消息默认产生一个 Run。
- 纯聊天 Run 只产生模型回答;行动 Run 还包含 Tool 调用、输出和产物。
- 第一版仅实现 `DefaultAgent`,不预设 Planner/Worker/Reviewer 流程。
- Behavior 定义 Agent 如何准备上下文、调用模型、调用 Tool 和结束 Run。
- Run 记录输入、输出、错误、时间和原始执行日志。
## 待细化
- Run 的取消、重试和失败显示。
- 行为接口的具体 TypeScript 形状。
- 后续 Plan/Step 与 Run 的关系。