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;
        provider?: IMetadataProvider;
        userId?: string;
        verbose?: boolean;
    }
    Index

    Properties

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

    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.

    userId?: string
    verbose?: boolean

    Mirrors ExecuteAgentParams.verbose — gates per-write logging