Skip to content
1 min read · 48 words

Function: filterThoughts()

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

Defined in: src/batteries/llm/chat_common/helpers.ts:794

Implements ChatHelpersCommon.filterThoughts.

Parameters

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

Returns

Thought[]