Function: filterThoughts()
ts
function filterThoughts(
thoughts: Iterable<Thought>,
mode: "all-self" | "latest-self" | "all",
selfIdentity: string,
replayCompatibility: readonly string[],
): Thought[];Defined in: batteries/llm/chat_common/helpers.ts:448
Implements ChatHelpersCommon.filterThoughts.
Parameters
| Parameter | Type |
|---|---|
thoughts | Iterable<Thought> |
mode | "all-self" | "latest-self" | "all" |
selfIdentity | string |
replayCompatibility | readonly string[] |
Returns
Thought[]