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

Function parseToolArguments

src/services/api/openAICompatInferenceClient.ts:961–970  ·  view source on GitHub ↗
(rawArguments: string | null | undefined)

Source from the content-addressed store, hash-verified

959}
960
961function parseToolArguments(rawArguments: string | null | undefined): unknown {
962 if (!rawArguments) {
963 return {}
964 }
965 try {
966 return JSON.parse(rawArguments)
967 } catch {
968 return rawArguments
969 }
970}
971
972function assertAssistantContentPresent(
973 context: 'unary' | 'stream',

Calls

no outgoing calls

Tested by

no test coverage detected