provider

command
v1.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

ezloop 完整 agent 示例:集成框架全部能力。

能力清单:

Provider   openai(.env / 环境变量配置,SiliconFlow/DeepSeek/Ollama 兼容)
           流式接收正文与思考过程(reasoning_content,推理模型可见)
Warp       modelretry(模型重试)· limit(工具并发闸)· safetool(panic 防护)
Hook       filetools(read/write/edit/grep/find + bash)
           approve(工具审批)· askuser(模型提问)· taskplan(规划确认)
           —— 三者同构:channel 决策中断,CLI 桥接 stdin
           task(并行分身:fork 当前 Agent 干子任务,过程隔离、结果回传,
             事件与 session 按 forkID 区分,分身内审批/提问照常工作)
           skill(从 skills/*.md 按需注入)
           localsession(会话持久化,/resume 恢复;分身写独立 session 可回放)
交互       流式输出(正文+思考)· 分身输出带 ⟨task-N⟩ 标记 · Ctrl+C 取消当轮
命令       /new /sessions /resume <id> /summary(手动摘要)/exit

运行:cp .env.example .env && go run ./examples/chat

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL