MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / sentInHistory

Function sentInHistory

graph-ui/src/browser-ai/chat-model.ts:173–174  ·  view source on GitHub ↗
(turn: BrowserChatTurn)

Source from the content-addressed store, hash-verified

171/** Whether a turn goes into the history of a later request: an answer, not a suggestion,
172 * the chat's own hint, its reply that a question has no context, or a restated question (H2). */
173export const sentInHistory = (turn: BrowserChatTurn): boolean => turn.status !== 'error' && turn.status !== 'generating'
174 && turn.answeredFrom !== 'suggestion' && turn.answeredFrom !== 'local' && turn.answeredFrom !== 'hint' && !turn.echo;
175
176/** Added to a question asked again after the model only restated it: the same request got the same
177 * echo, the model does not sample (H2). */

Callers 1

buildChatMessagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected