Skip to Content

Interface FeedbackResult

What MemoryOperations.shareFeedback returns.

The call names a session, so the id has to still be to hand when the results are rated. That is the argument for rating a search as soon as you have used it rather than at the end of a run.

Nothing here reports a rating that was refused: a batch the service will not take fails as a MemcoInvalidRequestError instead, raised locally where the SDK already knows the rule and by the service otherwise. What is worth reading back is FeedbackEntry.advice, which is per-result.

interface FeedbackResult {
    sessionId: string;
    entries: readonly FeedbackEntry[];
    instructions: Instructions;
}
Index
sessionId: string

The session the ratings were recorded against.

entries: readonly FeedbackEntry[]

What was recorded, one entry per rating sent.

instructions: Instructions

What the service asks the caller to do next.