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

Function formatUnknown

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

Source from the content-addressed store, hash-verified

133}
134
135export function formatUnknown(value: unknown): string {
136 if (typeof value === 'string') return value;
137 try {
138 return JSON.stringify(value, null, 2);
139 } catch {
140 return String(value);
141 }
142}
143
144export function formatUnknownInline(value: unknown): string {
145 if (typeof value === 'string') return value;

Callers 1

formatToolResultContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected