( ctx: Pick<ToolHandlerContext, 'structuredOutput'>, params: StructuredErrorParams, )
| 25 | } |
| 26 | |
| 27 | export function setStructuredErrorOutput( |
| 28 | ctx: Pick<ToolHandlerContext, 'structuredOutput'>, |
| 29 | params: StructuredErrorParams, |
| 30 | ): StructuredToolOutput { |
| 31 | const output = createStructuredErrorOutput(params); |
| 32 | ctx.structuredOutput = output; |
| 33 | return output; |
| 34 | } |
no test coverage detected