( ctx: ToolHandlerContext, executionContext: BridgeToolExecutionContext, result: ToolDomainResult, schema: string, schemaVersion: string, )
| 69 | } |
| 70 | |
| 71 | export function finalizeBridgeToolExecution( |
| 72 | ctx: ToolHandlerContext, |
| 73 | executionContext: BridgeToolExecutionContext, |
| 74 | result: ToolDomainResult, |
| 75 | schema: string, |
| 76 | schemaVersion: string, |
| 77 | ): void { |
| 78 | ctx.structuredOutput = { |
| 79 | result, |
| 80 | schema, |
| 81 | schemaVersion, |
| 82 | }; |
| 83 | |
| 84 | for (const image of executionContext.getBridgeImages()) { |
| 85 | ctx.attach(image); |
| 86 | } |
| 87 | |
| 88 | const nextStepParams = executionContext.getNextStepParams(); |
| 89 | if (nextStepParams) { |
| 90 | ctx.nextStepParams = nextStepParams; |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | export function toBridgeStatusDomainResult( |
| 95 | bridgeResult: BridgeToolResult, |
no test coverage detected