UNPKG

@sema-agent/core

Version:

Stateless, task-oriented AI agent core

14 lines (13 loc) • 846 B
/** * A session's external-content state as the memory write path reads it, for a tool that reports where its input came from * (`ToolExecuteContext.contentExposure`). It reads the session's pollution mark and never sets it. */ /** `"external"` the session's pollution mark is set (or its store answered with a standing mark on a fault), `"clean"` it is * not, `"unknown"` the leg mounted no engine memory or the read failed. A reader treats `"unknown"` as `"external"`. */ export type ContentExposure = "external" | "clean" | "unknown"; /** The reader over a leg's memory session (read at the call, so a session mounted later in prepare is the one read). */ export declare function contentExposureOf(session: () => { readonly pollution: { polluted: () => Promise<unknown>; }; } | undefined): () => Promise<ContentExposure>;