UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

8 lines (7 loc) • 253 B
const REQUEST_ONLY_BLOCKS = new WeakSet(); export function markRequestOnly(block) { REQUEST_ONLY_BLOCKS.add(block); } export function isRequestOnly(block) { return typeof block === "object" && block !== null && REQUEST_ONLY_BLOCKS.has(block); }