Async Repl Protocol

parcadei/Continuous-Claude-v3/.claude/skills/async-repl-protocol

作者 parcadeid07ff4b06b62f43771bc0c927d0211b734d6149e無授權條款3.9K 個星標收錄於 2026年10月9日更新於 2026年10月9日儲存庫8 個月前更新

Async REPL Protocol

僅含說明AI & Agents
AI 產生的概覽

為 Agentica 非同步 REPL 測試環境定義工具呼叫規則,涵蓋 await 用法與單一程式碼區塊回應。

功能
此技能是一份僅含說明的協定文件,用於在測試中使用 Agentica 的非同步 REPL 環境。它規定兩條規則:回傳 Future 的工具必須以 await 呼叫;每次回應只能包含一個程式碼區塊,並在其中完成計算與回傳。它不產生檔案或指令碼,只指引代理如何撰寫 REPL 程式碼。
適用情境
當代理在 Agentica 非同步 REPL 測試環境中運作,且需要呼叫回傳 Future 的工具時使用。當回應需要在同一程式碼區塊內完成計算與回傳、而不能拆分成多個區塊時也適用。
執行需求
不需要任何工具、套件、執行環境、憑證或網路存取。此技能不附帶指令碼,僅為說明文件。

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 blockcontent = await view_file(path)return any(c.isdigit() for c in content)
# BAD: Split blocks (second block never runs)content = await view_file(path)

來源與署名

來源:parcadei/Continuous-Claude-v3位於.claude/skills/async-repl-protocol提交d07ff4b

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架