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

Function buildInputSchema

src/tools/REPLTool/pyReplFactory.tsx:85–99  ·  view source on GitHub ↗
(description: InputSchemaDescription)

Source from the content-addressed store, hash-verified

83}
84
85function buildInputSchema(description: InputSchemaDescription) {
86 return lazySchema(() =>
87 z.strictObject({
88 code: z.string().describe(description.codeDescription),
89 timeout_ms: z
90 .number()
91 .int()
92 .min(1)
93 .max(MAX_TIMEOUT_MS)
94 .optional()
95 .default(DEFAULT_TIMEOUT_MS)
96 .describe(`Maximum execution time in milliseconds (1-${MAX_TIMEOUT_MS})`),
97 }),
98 )
99}
100
101function buildOutputSchema() {
102 return lazySchema(() =>

Callers 1

createPythonReplToolFunction · 0.70

Calls 3

lazySchemaFunction · 0.85
defaultMethod · 0.80
maxMethod · 0.80

Tested by

no test coverage detected