codegen_render_entity
Renders Java Entity code for JPA or MyBatis-Plus by using a table context, outputting a single Java file for the Entity layer.
Instructions
渲染 Entity 层(JPA @Entity / MybatisPlus @TableName)。需要先调用 codegen_build_context 获取 context。返回单个 java 文件源码。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"context": "<context>"
},
"name": "codegen_render_entity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | Yes | 从 codegen_build_context 返回的完整模板上下文 dict。包含 className/columns/primaryKeyType/templateCategory 等字段。LLM 应原样传递,可在传入前修改字段以重新渲染。 |