OptionalcompanyOptionalcurrentOptionalobservabilityOptional observability context for tracing reranking operations.
OptionalprimaryPrimary scope entity ID for multi-tenant filtering (FK to Entity table).
OptionalprimaryPrimary scope record ID for multi-tenant filtering.
OptionalrerankerOptional reranker configuration for two-stage retrieval.
OptionalsecondaryOptional secondary scope configuration from the agent. Defines per-dimension inheritance modes and validation rules.
OptionalsecondaryArbitrary secondary scope dimensions for multi-tenant filtering.
OptionalSharedInject only shared notes — those with no UserID — whatever userId says. Set for a run with an
audience (ExecuteAgentParams.Audience): a note scoped to one user is that user's memory and must not be
shown to a room. Agent, company and multi-tenant scope matching still apply. Enforced by an explicit
UserID == null filter on both the cache and the semantic path; an undefined userId does NOT mean
"shared only" on the semantic path (AIEngine's base filter skips the user check when it is undefined).
Optionaluser
Parameters for retrieving notes in a specific context