(payload: ToolResultMap['get_code'])
| 226 | } |
| 227 | |
| 228 | export function createCodeToolResponse(payload: ToolResultMap['get_code']): CallToolResult { |
| 229 | if (!isCodeResult(payload)) { |
| 230 | throw new Error('Invalid get_code payload received from extension.') |
| 231 | } |
| 232 | |
| 233 | return toCallToolResult(buildGetCodeToolResult(payload)) |
| 234 | } |
| 235 | |
| 236 | export function createStructureToolResponse( |
| 237 | payload: ToolResultMap['get_structure'] |
no test coverage detected