Member Junction
    Preparing search index...

    Run-scoped context for memory writes. Injected per call rather than read from globals so the manager stays independently testable and multi-run safe.

    interface MemoryWriteContext {
        agentId: string;
        agentRunId?: string;
        companyId?: string;
        contextUser: UserInfo;
        conversationDetailId?: string;
        conversationId?: string;
        isRunTainted?: boolean;
        provider?: IMetadataProvider;
        taintedSources?: readonly AgentTaintedSource[];
        userId?: string;
        verbose?: boolean;
    }
    Index

    Properties

    agentId: string
    agentRunId?: string
    companyId?: string
    contextUser: UserInfo
    conversationDetailId?: string
    conversationId?: string
    isRunTainted?: boolean

    Whether the current agent run has ingested untrusted or semi-trusted external data. When true, in-flight memory writes land with Status = 'Pending' (held out of immediate injection until reviewed) and record taint provenance in Comments.

    Metadata provider to persist through. Callers running under a non-default provider (multi-provider clients, request-bound server providers) MUST pass theirs — BaseAgent passes its ProviderToUse. Falls back to the global default only when absent.

    taintedSources?: readonly AgentTaintedSource[]

    Provenance of untrusted/semi-trusted sources ingested earlier in this run.

    userId?: string
    verbose?: boolean

    Mirrors ExecuteAgentParams.verbose — gates per-write logging