Member Junction
    Preparing search index...

    Parameters for retrieving examples in a specific context

    interface GetExamplesParams {
        agentId: string;
        companyId?: string;
        contextUser: UserInfo;
        currentInput?: string;
        maxExamples: number;
        primaryScopeEntityId?: string;
        primaryScopeRecordId?: string;
        secondaryScopeConfig?: SecondaryScopeConfig;
        secondaryScopes?: Record<string, SecondaryScopeValue>;
        strategy: "Recent" | "Semantic" | "Rated";
        userId?: string;
    }
    Index

    Properties

    agentId: string
    companyId?: string
    contextUser: UserInfo
    currentInput?: string
    maxExamples: number
    primaryScopeEntityId?: string

    Primary scope entity ID for multi-tenant filtering (FK to Entity table).

    primaryScopeRecordId?: string

    Primary scope record ID for multi-tenant filtering.

    secondaryScopeConfig?: SecondaryScopeConfig

    Optional secondary scope configuration from the agent. Defines per-dimension inheritance modes and validation rules.

    secondaryScopes?: Record<string, SecondaryScopeValue>

    Arbitrary secondary scope dimensions for multi-tenant filtering.

    strategy: "Recent" | "Semantic" | "Rated"
    userId?: string