首页/ AI 技能 / @skilllib/skill-2014279367646457858
Skill站外收录 @skilllib/skill-2014279367646457858

async-repl-protocol

定义异步 REPL交互协议,要求对返回 Future 的工具调用必须使用 await 关键字,并强制每次响应仅包含一个可执行代码块,确保异步操作正确调度与结果完整返回。

0.0 (0) 130 次安装 原作者 编程导航
收录于 2026-01-22
效率工具 AI 技能

Skills.MD

# Async REPL Protocol When working with Agentica's async REPL harness for testing. ## Rules ### 1. Use `await` for Future-returning tools ```python content = await view_file(path) # NOT view_file(path) answer = await ask_memory("...") ``` ### 2. Single code block per response Compute AND return in ONE block. Multiple blocks means only first executes. ```python # GOOD: Single block content = await view_file(path) return any(c.isdigit() for c in content) # BAD: Split blocks (second block never runs) content = await view_file(path)

评论 0

还没有评论,来抢沙发。