MCPcopy Create free account
hub / github.com/anomalyco/opencode / parseJson

Function parseJson

packages/llm/src/protocols/shared.ts:97–101  ·  view source on GitHub ↗
(route: string, input: string, message: string)

Source from the content-addressed store, hash-verified

95 })
96
97export const parseJson = (route: string, input: string, message: string) =>
98 Effect.try({
99 try: () => decodeJson(input),
100 catch: () => eventError(route, message, input),
101 })
102
103/**
104 * Join the `text` field of a list of parts with newlines. Used by routes

Callers 1

parseToolInputFunction · 0.70

Calls 1

eventErrorFunction · 0.85

Tested by

no test coverage detected