@sema-agent/core
Version:
Stateless, task-oriented AI agent core
8 lines (7 loc) • 544 B
TypeScript
/**
* THE tool door: a value a tool body handed the engine — a member of what its `execute` returned, or the `details` mark of
* what it threw (read by `thrownMarksOf`) — as data the engine owns. Primitives are themselves; anything the receipt refuses
* (a Proxy, an object with its own `toJSON`, a bigint or a symbol at the top) is absent. The copy of an object the engine
* holds a receipt for holds it too — the receipt crosses with the object, never as a member.
*/
export declare function receivedToolData(v: unknown): unknown;