MCPcopy Create free account
hub / github.com/Noumena-Network/code / isSummarizeOption

Function isSummarizeOption

src/components/MessageSelector.tsx:33–35  ·  view source on GitHub ↗
(option: RestoreOption | null)

Source from the content-addressed store, hash-verified

31import { isInternalBuild } from 'src/capabilities/static.js'
32type RestoreOption = 'both' | 'conversation' | 'code' | 'summarize' | 'summarize_up_to' | 'nevermind';
33function isSummarizeOption(option: RestoreOption | null): option is 'summarize' | 'summarize_up_to' {
34 return option === 'summarize' || option === 'summarize_up_to';
35}
36type Props = {
37 messages: Message[];
38 onPreRestore: () => void;

Callers 3

onSelectRestoreOptionFunction · 0.85
MessageSelectorFunction · 0.85
RestoreOptionDescriptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected