code_template
Generate code templates for quantitative research workflows including regression, panel data, difference-in-differences, meta-analysis, and structural equation modeling in R, Stata, or Python.
Instructions
분석 전체 워크플로우 코드 템플릿
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflow | Yes | 워크플로우 유형 | |
| language | Yes | 언어 |
Implementation Reference
- src/tools/index.ts:1645-1651 (handler)The handler function that executes the 'code_template' tool logic. It returns a structured response with the requested workflow and language, providing a placeholder template message directing users to specific code generation tools.function handleCodeTemplate(args: Record<string, unknown>) { return { workflow: args.workflow, language: args.language, template: "Full workflow template - use specific code generation tools for detailed code" }; }
- src/tools/index.ts:391-402 (schema)The input schema defining the parameters for the 'code_template' tool: workflow type (regression_full, panel_full, etc.) and language (r, stata, python).inputSchema: { type: "object", properties: { workflow: { type: "string", enum: ["regression_full", "panel_full", "did_full", "meta_full", "sem_full"], description: "워크플로우 유형" }, language: { type: "string", enum: ["r", "stata", "python"], description: "언어" }, }, required: ["workflow", "language"], },
- src/tools/index.ts:389-403 (registration)The tool registration object in the exported tools array, including name, description, and inputSchema.name: "code_template", description: "분석 전체 워크플로우 코드 템플릿", inputSchema: { type: "object", properties: { workflow: { type: "string", enum: ["regression_full", "panel_full", "did_full", "meta_full", "sem_full"], description: "워크플로우 유형" }, language: { type: "string", enum: ["r", "stata", "python"], description: "언어" }, }, required: ["workflow", "language"], }, },
- src/tools/index.ts:838-839 (registration)The switch case in handleToolCall that maps the 'code_template' tool name to its handler function.case "code_template": return handleCodeTemplate(args);