MCPcopy Create free account
hub / github.com/cortexkit/magic-context / parseStringList

Function parseStringList

packages/plugin/scripts/longmemeval/config.ts:20–26  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

18}
19
20function parseStringList(value: string | undefined): string[] {
21 if (!value) return [];
22 return value
23 .split(",")
24 .map((entry) => entry.trim())
25 .filter((entry) => entry.length > 0);
26}
27
28function parseQuestionTypes(value: string | undefined): LongMemEvalQuestionType[] {
29 const parsed = parseStringList(value);

Callers 2

parseQuestionTypesFunction · 0.85
parseRunnerConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected