Skip to content
1 min read · 54 words

Variable: defaultFilterThoughts

ts
const defaultFilterThoughts: (
  thoughts: Iterable<Thought>,
  mode: "all-self" | "latest-self" | "all",
  selfIdentity: string,
  replayCompatibility: readonly string[],
) => Thought[] = filterThoughts;

Defined in: batteries/llm/chat_common/helpers.ts:486

Default thought filter; alias of filterThoughts.

Implements ChatHelpersCommon.filterThoughts.

Parameters

ParameterType
thoughtsIterable<Thought>
mode"all-self" | "latest-self" | "all"
selfIdentitystring
replayCompatibilityreadonly string[]

Returns

Thought[]