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

Function normalizeToolInput

src/services/api/openAICompatInferenceClient.ts:309–314  ·  view source on GitHub ↗
(input: unknown)

Source from the content-addressed store, hash-verified

307}
308
309function normalizeToolInput(input: unknown): string {
310 if (typeof input === 'string') {
311 return input
312 }
313 return jsonStringify(input)
314}
315
316const MALFORMED_TOOL_MARKERS = [
317 '<|tool_calls_section_begin|>',

Callers 1

convertAssistantContentFunction · 0.70

Calls 1

jsonStringifyFunction · 0.85

Tested by

no test coverage detected