MCPcopy Create free account
hub / github.com/microsoft/AI-Engineering-Coach / stringValue

Function stringValue

src/core/parser-codex.ts:77–81  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

75}
76
77function stringValue(value: unknown): string {
78 if (typeof value === 'string') return value;
79 if (typeof value === 'number' || typeof value === 'boolean') return String(value);
80 return '';
81}
82
83function recordValue(value: unknown): Record<string, unknown> | undefined {
84 return isRecord(value) ? value : undefined;

Callers 7

handleUserMessageEventFunction · 0.70
handleFunctionCallEventFunction · 0.70
handleEventMsgFunction · 0.70
handleTurnContextFunction · 0.70
handleResponseItemFunction · 0.70
updateSessionMetaFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected