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

Function buildOutputSchema

src/tools/REPLTool/pyReplFactory.tsx:101–117  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99}
100
101function buildOutputSchema() {
102 return lazySchema(() =>
103 z.object({
104 output: z.string(),
105 error: z.string().optional(),
106 toolCalls: z.array(
107 z.object({
108 toolName: z.string(),
109 toolInput: z.record(z.string(), z.unknown()),
110 success: z.boolean(),
111 result: z.unknown().optional(),
112 error: z.string().optional(),
113 }),
114 ),
115 }),
116 )
117}
118
119type PythonReplToolOutput = z.infer<ReturnType<typeof buildOutputSchema>>
120

Callers 1

createPythonReplToolFunction · 0.70

Calls 2

lazySchemaFunction · 0.85
recordMethod · 0.80

Tested by

no test coverage detected