Skip to documentation
Docs navigation
Docs/AbsorbFromAgentOptions
Types

AbsorbFromAgentOptions

TypeScript contract for AbsorbFromAgentOptions.

What it does

TypeScript contract for AbsorbFromAgentOptions.

Use AbsorbFromAgentOptions to keep application code aligned with the values MemoGrafter accepts or returns at this boundary. It is a TypeScript-only contract and adds no runtime behavior.

Definition

TypeScript
interface AbsorbFromAgentOptions {
  topicIds?: string[];
  prompt?: string;
  minSimilarity?: number;
  limit?: number;
}

Fields and behavior

topicIds? (string[]) — Select explicit source topics.
prompt? (string) — Select source topics semantically when IDs are unknown.
minSimilarity? (number) — Reject semantic candidates below this score.
limit? (number) — Cap the number of selected source topics.
Do not combine conflicting selection intent. When neither topicIds nor prompt is supplied, all eligible source topics may be considered.

Result

A compile-time-only TypeScript contract with no runtime value.

Example

example.ts
import type { AbsorbFromAgentOptions } from "memo-grafter";

function useValue(value: AbsorbFromAgentOptions) {
  return value;
}

Important behavior

Use import type when the contract is not needed at runtime.