UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

15 lines (14 loc) • 447 B
import { uuidv7 } from "../internal/harness.js"; export function mintCompletionId(target) { if (target.completionId === undefined) target.completionId = uuidv7(); return target.completionId; } export function completionIdCandidate() { return uuidv7(); } export function commitCompletionIdIfEmpty(target, value) { if (target.completionId === undefined) target.completionId = value; return target.completionId; }