Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDatabaseExecuteTool ¶
func NewDatabaseExecuteTool(db *gorm.DB) tool.InvokableTool
NewDatabaseExecuteTool 创建执行核心工具实例
Types ¶
type DatabaseExecuteTool ¶
type DatabaseExecuteTool struct {
// contains filtered or unexported fields
}
DatabaseExecuteTool 数据库执行工具
type ExecuteParams ¶
type ExecuteParams struct {
Query string `json:"query" jsonschema:"description=要执行的SQL查询语句,required"`
Params []interface{} `json:"params,omitempty" jsonschema:"description=查询参数(可选)"`
}
ExecuteParams 查询参数
Click to show internal directories.
Click to hide internal directories.