OptionalPrimaryEntity type that represents the tenant (e.g., Organization, Company). Optional — descriptive only.
OptionalPrimarySpecific tenant record ID. NULL = no tenant filtering.
OptionalSecondaryAdditional dimensional scoping (e.g., { DepartmentID: 'support', ContactID: '...' }).
Runtime multi-tenant context that flows through every provider so a single
SearchScopedefinition can serve many tenants without per-tenant scope clones.Fields are injected into each scope's Nunjucks-rendered values as:
{{ context.PrimaryScopeRecordID }}{{ context.SecondaryScopes.<dimensionName> }}Type-aligned with the agent memory system's
SecondaryScopeConfig/SecondaryScopeValuein@memberjunction/ai-core-plus— the sameExecuteAgentParams.primaryScopeRecordId+secondaryScopesflow through notes, pre-execution RAG, and scoped search without any translation.