Available on crate feature
human-loop only.Expand description
Direct re-exports from echo_orchestration::human_loop.
Modules§
- adapter
- 适配器 (Adapter)
- permission
- 权限请求抽象 (PermissionRequest)
- policy
- 审批策略引擎
- service
- 权限服务 (PermissionService)
Structs§
- Approval
Responder - 审批响应器:用于向 Agent 返回用户的审批决策
- Approval
Rule - 审批规则:匹配工具名并指定风险等级
- Classifier
Context - 分类器上下文 - 包含分类所需的所有信息
- Classifier
Result - 分类结果
- Composite
Classifier - 组合分类器 - 依次执行多个分类器
- Composite
Permission Audit Sink - 组合审计 Sink — 同时写入多个 Sink
- Console
Human Loop Provider - 基于命令行 stdin 的人工介入 Provider(阻塞式)
- Default
Permission Request Handler - 默认权限请求处理器(使用 HumanLoopProvider)
- Denial
Tracker - 拒绝跟踪器 - 防止 auto 模式拒绝循环
- Human
Loop Manager - 人工介入管理器(事件驱动模式)
- Human
Loop Request - 向人工发起的介入请求
- InMemory
Permission Audit Sink - 内存审计 Sink — 环形缓冲区,保留最近 N 条审计记录
- Input
Responder - 输入响应器:用于向 Agent 返回用户的文本输入
- LlmClassifier
- 使用 LLM 进行智能决策的分类器
- Logging
Permission Audit Sink - 日志审计 Sink — 使用 tracing 记录每条审计
- Permission
Audit Entry - 权限审计条目 — 记录一次权限检查的完整上下文
- Permission
Context - 权限上下文(额外的上下文信息)
- Permission
Request - 权限请求(向用户请求权限决策的完整上下文)
- Permission
Response - 权限响应(用户的决策结果)
- Permission
Service - 权限服务 - 统一的权限检查入口
- Protected
Path Checker - 受保护路径检查器
- Risk
Context - 风险上下文 — 描述当前操作的环境风险信号
- Rule
Classifier - 基于规则的简单 Classifier(无需 LLM)
- Session
Approval Cache - 会话级审批缓存
- Suggestion
- 建议选项(供用户选择的选项)
- WebSocket
Human Loop Provider - WebSocket 人工介入 Provider。
- Webhook
Human Loop Provider - HTTP Webhook 人工介入 Provider。
Enums§
- Approval
Decision - 审批决策(用户对工具执行的决定)
- Approval
Scope - 审批的范围/持久性
- Human
Loop Event - 人工介入事件(通知上层应用需要用户介入)
- Human
Loop Kind - 人工介入的场景类型
- Human
Loop Response - 人工介入的响应结果
- Permission
Response Decision - 权限响应决策
- Permission
Update - 权限规则更新
- Policy
Decision - 策略评估结果
- Protected
Path Result - 受保护路径检查结果
- Risk
Level - 风险等级
- Suggested
Action - 建议操作类型
Traits§
- Approval
Policy - 审批策略 trait
- Batch
Approval Provider - 批量审批扩展 trait
- Classifier
- Classifier trait - 抽象分类器接口
- Human
Loop Handler - 将
HumanLoopEvent转化为具体 UI 交互的桥接接口 - Human
Loop Provider - 人工介入 Provider trait
- Permission
Audit Sink - 权限审计 Sink — 接收审计条目的抽象接口
- Permission
Request Handler - 权限请求处理器 trait
Functions§
- default_
provider - 默认 Provider:命令行阻塞模式
- dispatch_
event - 将一个
HumanLoopEvent分发给handler处理