MCPcopy Create free account
hub / github.com/xerrors/Yuxi / serializeToolArgs

Function serializeToolArgs

web/src/composables/useAgentStreamHandler.js:6–10  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

4import { extractPendingInterrupt } from '@/composables/useApproval'
5
6const serializeToolArgs = (args) => {
7 if (typeof args === 'string') return args
8 if (args === undefined || args === null) return ''
9 return JSON.stringify(args)
10}
11
12const streamEventToMessageChunk = (streamEvent) => {
13 if (!streamEvent || typeof streamEvent !== 'object') return null

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected