MCPcopy Create free account
hub / github.com/apache/maka / formatUnknownInline

Function formatUnknownInline

packages/cli/src/pi-transcript-format.ts:144–151  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

142}
143
144export function formatUnknownInline(value: unknown): string {
145 if (typeof value === 'string') return value;
146 try {
147 return JSON.stringify(value);
148 } catch {
149 return String(value);
150 }
151}
152
153/** Fold line breaks into spaces so a summary can never split a one-line slot. */
154export function collapseToSingleLine(text: string): string {

Callers 1

toolInputSummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected