()
| 99 | } |
| 100 | |
| 101 | function 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 | |
| 119 | type PythonReplToolOutput = z.infer<ReturnType<typeof buildOutputSchema>> |
| 120 |
no test coverage detected