Documentation
¶
Index ¶
- func GetCalculatorTool() []tool.BaseTool
- func GetExecuteTool() []tool.BaseTool
- func GetKnowledgeReasoningTools(retriever retriever.Retriever, retrieverOptions []retriever.Option) []tool.BaseTool
- func GetKnowledgeTools(indexer indexer.Indexer, retriever retriever.Retriever, ...) []tool.BaseTool
- func GetMySQLTools(db *gorm.DB) []tool.BaseTool
- func GetPostgresTools(db *gorm.DB) []tool.BaseTool
- func GetSellTool() []tool.BaseTool
- func GetSysInfoTool() []tool.BaseTool
- func GetTimeTool() []tool.BaseTool
- func GetWeatherTool() []tool.BaseTool
- func NewAlterTableTool(db *gorm.DB) tool.InvokableTool
- func NewCountQueryTool(db *gorm.DB) tool.InvokableTool
- func NewCreateTableTool(db *gorm.DB) tool.InvokableTool
- func NewDeleteQueryTool(db *gorm.DB) tool.InvokableTool
- func NewDescribeTableTool(db *gorm.DB) tool.InvokableTool
- func NewKnowledgeAnalysisTool() tool.InvokableTool
- func NewKnowledgeSearchTool(retriever retriever.Retriever, retrieverOptions []retriever.Option) tool.InvokableTool
- func NewKnowledgeThinkTool() tool.InvokableTool
- func NewListDatabasesTool(db *gorm.DB) tool.InvokableTool
- func NewListTablesTool(db *gorm.DB) tool.InvokableTool
- func NewLoadDocumentsTool(indexer indexer.Indexer) tool.InvokableTool
- func NewMySQLAlterTableTool(db *gorm.DB) tool.InvokableTool
- func NewMySQLCountQueryTool(db *gorm.DB) tool.InvokableTool
- func NewMySQLCreateIndexTool(db *gorm.DB) tool.InvokableTool
- func NewMySQLCreateTableTool(db *gorm.DB) tool.InvokableTool
- func NewMySQLDeleteQueryTool(db *gorm.DB) tool.InvokableTool
- func NewMySQLDescribeTableTool(db *gorm.DB) tool.InvokableTool
- func NewMySQLListDatabasesTool(db *gorm.DB) tool.InvokableTool
- func NewMySQLListTablesTool(db *gorm.DB) tool.InvokableTool
- func NewMySQLReadQueryTool(db *gorm.DB) tool.InvokableTool
- func NewMySQLShowIndexesTool(db *gorm.DB) tool.InvokableTool
- func NewMySQLUpdateQueryTool(db *gorm.DB) tool.InvokableTool
- func NewMySQLWriteQueryTool(db *gorm.DB) tool.InvokableTool
- func NewReadQueryTool(db *gorm.DB) tool.InvokableTool
- func NewSearchDocumentsTool(retriever retriever.Retriever, options *retriever.Options) tool.InvokableTool
- func NewUpdateQueryTool(db *gorm.DB) tool.InvokableTool
- func NewWriteQueryTool(db *gorm.DB) tool.InvokableTool
- type AlterTableParams
- type AlterTableTool
- type AnalysisParams
- type AnalysisResult
- type CalculatorParams
- type CountQueryParams
- type CountQueryTool
- type CreateTableParams
- type CreateTableTool
- type DeleteQueryParams
- type DeleteQueryTool
- type DescribeTableParams
- type DescribeTableTool
- type DirectoryParams
- type ExecuteParams
- type KnowledgeAnalysisTool
- type KnowledgeSearchParams
- type KnowledgeSearchResult
- type KnowledgeSearchTool
- type KnowledgeThinkTool
- type ListDatabasesParams
- type ListDatabasesTool
- type ListTablesParams
- type ListTablesTool
- type LoadDocumentSourceType
- type LoadDocumentsParams
- type LoadDocumentsTool
- type MySQLAlterTableParams
- type MySQLAlterTableTool
- type MySQLCountQueryParams
- type MySQLCountQueryTool
- type MySQLCreateIndexParams
- type MySQLCreateIndexTool
- type MySQLCreateTableParams
- type MySQLCreateTableTool
- type MySQLDeleteQueryParams
- type MySQLDeleteQueryTool
- type MySQLDescribeTableParams
- type MySQLDescribeTableTool
- type MySQLListDatabasesParams
- type MySQLListDatabasesTool
- type MySQLListTablesParams
- type MySQLListTablesTool
- type MySQLReadQueryParams
- type MySQLReadQueryTool
- type MySQLShowIndexesParams
- type MySQLShowIndexesTool
- type MySQLUpdateQueryParams
- type MySQLUpdateQueryTool
- type MySQLWriteQueryParams
- type MySQLWriteQueryTool
- type ReadQueryParams
- type ReadQueryTool
- type SearchDocumentsTool
- type SearchParams
- type ShellResult
- type ShellTool
- type SystemInfoParams
- type ThinkParams
- type ThinkResult
- type TimeParams
- type UpdateQueryParams
- type UpdateQueryTool
- type WeatherParams
- type WriteQueryParams
- type WriteQueryTool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetExecuteTool ¶
func GetKnowledgeReasoningTools ¶
func GetKnowledgeReasoningTools(retriever retriever.Retriever, retrieverOptions []retriever.Option) []tool.BaseTool
GetKnowledgeReasoningTools 获取知识推理工具集合
func GetKnowledgeTools ¶
func GetPostgresTools ¶
GetPostgresTools 获取PostgreSQL工具列表
func GetSellTool ¶
func GetSysInfoTool ¶
func NewAlterTableTool ¶
func NewAlterTableTool(db *gorm.DB) tool.InvokableTool
NewAlterTableTool 创建修改表工具实例
func NewCountQueryTool ¶
func NewCountQueryTool(db *gorm.DB) tool.InvokableTool
NewCountQueryTool 创建计数查询工具实例
func NewCreateTableTool ¶
func NewCreateTableTool(db *gorm.DB) tool.InvokableTool
NewCreateTableTool 创建表工具实例
func NewDeleteQueryTool ¶
func NewDeleteQueryTool(db *gorm.DB) tool.InvokableTool
NewDeleteQueryTool 创建删除数据工具实例
func NewDescribeTableTool ¶
func NewDescribeTableTool(db *gorm.DB) tool.InvokableTool
NewDescribeTableTool 创建描述表工具实例
func NewKnowledgeAnalysisTool ¶
func NewKnowledgeAnalysisTool() tool.InvokableTool
NewKnowledgeAnalysisTool 创建知识分析工具实例
func NewKnowledgeSearchTool ¶
func NewKnowledgeSearchTool(retriever retriever.Retriever, retrieverOptions []retriever.Option) tool.InvokableTool
NewKnowledgeSearchTool 创建知识搜索工具实例
func NewKnowledgeThinkTool ¶
func NewKnowledgeThinkTool() tool.InvokableTool
NewKnowledgeThinkTool 创建知识思考工具实例
func NewListDatabasesTool ¶
func NewListDatabasesTool(db *gorm.DB) tool.InvokableTool
NewListDatabasesTool 创建列出数据库工具实例
func NewListTablesTool ¶
func NewListTablesTool(db *gorm.DB) tool.InvokableTool
NewListTablesTool 创建列出表工具实例
func NewLoadDocumentsTool ¶
func NewLoadDocumentsTool(indexer indexer.Indexer) tool.InvokableTool
NewLoadDocumentsTool 创建文档加载工具实例
func NewMySQLAlterTableTool ¶
func NewMySQLAlterTableTool(db *gorm.DB) tool.InvokableTool
NewMySQLAlterTableTool 创建修改表工具实例
func NewMySQLCountQueryTool ¶
func NewMySQLCountQueryTool(db *gorm.DB) tool.InvokableTool
NewMySQLCountQueryTool 创建计数查询工具实例
func NewMySQLCreateIndexTool ¶
func NewMySQLCreateIndexTool(db *gorm.DB) tool.InvokableTool
NewMySQLCreateIndexTool 创建索引工具实例
func NewMySQLCreateTableTool ¶
func NewMySQLCreateTableTool(db *gorm.DB) tool.InvokableTool
NewMySQLCreateTableTool 创建表工具实例
func NewMySQLDeleteQueryTool ¶
func NewMySQLDeleteQueryTool(db *gorm.DB) tool.InvokableTool
NewMySQLDeleteQueryTool 创建删除数据工具实例
func NewMySQLDescribeTableTool ¶
func NewMySQLDescribeTableTool(db *gorm.DB) tool.InvokableTool
NewMySQLDescribeTableTool 创建描述表工具实例
func NewMySQLListDatabasesTool ¶
func NewMySQLListDatabasesTool(db *gorm.DB) tool.InvokableTool
NewMySQLListDatabasesTool 创建列出数据库工具实例
func NewMySQLListTablesTool ¶
func NewMySQLListTablesTool(db *gorm.DB) tool.InvokableTool
NewMySQLListTablesTool 创建列出表工具实例
func NewMySQLReadQueryTool ¶
func NewMySQLReadQueryTool(db *gorm.DB) tool.InvokableTool
NewMySQLReadQueryTool 创建查询数据工具实例
func NewMySQLShowIndexesTool ¶
func NewMySQLShowIndexesTool(db *gorm.DB) tool.InvokableTool
NewMySQLShowIndexesTool 创建显示索引工具实例
func NewMySQLUpdateQueryTool ¶
func NewMySQLUpdateQueryTool(db *gorm.DB) tool.InvokableTool
NewMySQLUpdateQueryTool 创建更新数据工具实例
func NewMySQLWriteQueryTool ¶
func NewMySQLWriteQueryTool(db *gorm.DB) tool.InvokableTool
NewMySQLWriteQueryTool 创建写入数据工具实例
func NewReadQueryTool ¶
func NewReadQueryTool(db *gorm.DB) tool.InvokableTool
NewReadQueryTool 创建查询数据工具实例
func NewSearchDocumentsTool ¶
func NewSearchDocumentsTool(retriever retriever.Retriever, options *retriever.Options) tool.InvokableTool
NewSearchDocumentsTool 创建文档搜索工具实例
func NewUpdateQueryTool ¶
func NewUpdateQueryTool(db *gorm.DB) tool.InvokableTool
NewUpdateQueryTool 创建更新数据工具实例
func NewWriteQueryTool ¶
func NewWriteQueryTool(db *gorm.DB) tool.InvokableTool
NewWriteQueryTool 创建写入数据工具实例
Types ¶
type AlterTableParams ¶
type AlterTableParams struct {
TableName string `json:"tableName" jsonschema:"description=表名,required"`
SQL string `json:"sql" jsonschema:"description=修改表的SQL语句,required"`
}
AlterTableParams 修改表参数
type AlterTableTool ¶
type AlterTableTool struct {
// contains filtered or unexported fields
}
AlterTableTool 修改表工具
type AnalysisParams ¶
type AnalysisParams struct {
Analysis string `json:"analysis" jsonschema:"description=对搜索结果的分析和评估,required"`
}
AnalysisParams 分析参数
type AnalysisResult ¶
type AnalysisResult struct {
Analysis string `json:"analysis"`
AnalysisLog []string `json:"analysisLog"`
Success bool `json:"success"`
Error string `json:"error,omitempty"`
Operation string `json:"operation"`
Timestamp int64 `json:"timestamp"`
}
AnalysisResult 分析结果
type CalculatorParams ¶
type CalculatorParams struct {
Operation string `` /* 180-byte string literal not displayed */
A float64 `json:"a" jsonschema:"description=第一个数字,required"`
B float64 `json:"b" jsonschema:"description=第二个数字,required"`
}
场景1:数学计算工具
type CountQueryParams ¶
type CountQueryParams struct {
TableName string `json:"tableName" jsonschema:"description=表名,required"`
Where map[string]interface{} `json:"where,omitempty" jsonschema:"description=计数条件"`
}
CountQueryParams 计数参数
type CountQueryTool ¶
type CountQueryTool struct {
// contains filtered or unexported fields
}
CountQueryTool 计数查询工具
type CreateTableParams ¶
type CreateTableParams struct {
TableName string `json:"tableName" jsonschema:"description=表名,required"`
SQL string `json:"sql" jsonschema:"description=创建表的SQL语句,required"`
IfExists bool `json:"ifExists,omitempty" jsonschema:"description=如果表存在是否跳过,默认false"`
}
CreateTableParams 创建表参数
type CreateTableTool ¶
type CreateTableTool struct {
// contains filtered or unexported fields
}
CreateTableTool 创建表工具
type DeleteQueryParams ¶
type DeleteQueryParams struct {
TableName string `json:"tableName" jsonschema:"description=表名,required"`
Where map[string]interface{} `json:"where" jsonschema:"description=删除条件,required"`
}
DeleteQueryParams 删除参数
type DeleteQueryTool ¶
type DeleteQueryTool struct {
// contains filtered or unexported fields
}
DeleteQueryTool 删除数据工具
type DescribeTableParams ¶
type DescribeTableParams struct {
TableName string `json:"tableName" jsonschema:"description=表名,required"`
}
DescribeTableParams 描述表参数
type DescribeTableTool ¶
type DescribeTableTool struct {
// contains filtered or unexported fields
}
DescribeTableTool 描述表结构工具
type DirectoryParams ¶
type DirectoryParams struct {
Operation string `` /* 134-byte string literal not displayed */
Path string `json:"path,omitempty" jsonschema:"description=要切换到的目录路径(当operation为change时必需)"`
}
DirectoryParams 表示目录操作的参数
type ExecuteParams ¶
type ExecuteParams struct {
Command string `json:"command" jsonschema:"description=要执行的命令,required"`
Args []string `json:"args,omitempty" jsonschema:"description=命令参数"`
WorkingDir string `json:"workingDir,omitempty" jsonschema:"description=命令执行的工作目录"`
Timeout int `json:"timeout,omitempty" jsonschema:"description=超时时间(秒),默认为30秒"`
Shell bool `json:"shell,omitempty" jsonschema:"description=是否在shell环境中执行,默认为false"`
}
ExecuteParams 表示命令执行的参数
type KnowledgeAnalysisTool ¶
type KnowledgeAnalysisTool struct {
}
KnowledgeAnalysisTool 知识分析工具 提供搜索结果分析功能
type KnowledgeSearchParams ¶
type KnowledgeSearchParams struct {
Query string `json:"query" jsonschema:"description=搜索查询内容,required"`
Limit int `json:"limit,omitempty" jsonschema:"description=搜索结果数量限制,默认为10"`
}
KnowledgeSearchParams 知识搜索参数
type KnowledgeSearchResult ¶
type KnowledgeSearchResult struct {
Query string `json:"query"`
Documents []*schema.Document `json:"documents"`
DocumentCount int `json:"documentCount"`
Success bool `json:"success"`
Error string `json:"error,omitempty"`
Operation string `json:"operation"`
Timestamp int64 `json:"timestamp"`
}
KnowledgeSearchResult 知识搜索结果
type KnowledgeSearchTool ¶
type KnowledgeSearchTool struct {
// contains filtered or unexported fields
}
KnowledgeSearchTool 知识搜索工具 提供知识库搜索功能
type KnowledgeThinkTool ¶
type KnowledgeThinkTool struct {
}
KnowledgeThinkTool 知识推理思考工具 提供思考和推理功能,用于知识探索策略规划
type ListDatabasesTool ¶
type ListDatabasesTool struct {
// contains filtered or unexported fields
}
ListDatabasesTool 列出数据库工具
type ListTablesParams ¶
type ListTablesParams struct {
Database string `json:"database,omitempty" jsonschema:"description=数据库名称,不指定时使用当前数据库"`
}
ListTablesParams 列出表参数
type ListTablesTool ¶
type ListTablesTool struct {
// contains filtered or unexported fields
}
ListTablesTool 列出表工具
type LoadDocumentSourceType ¶
type LoadDocumentSourceType string
const ( LoadDocumentSourceTypeFile LoadDocumentSourceType = "file" LoadDocumentSourceTypeUrl LoadDocumentSourceType = "url" )
func (LoadDocumentSourceType) String ¶
func (l LoadDocumentSourceType) String() string
type LoadDocumentsParams ¶
type LoadDocumentsParams struct {
// 文档来源类型:file, url
SourceType LoadDocumentSourceType `json:"sourceType" jsonschema:"description=文档来源类型,required,enum=file,enum=url"`
Uri string `json:"uri"`
}
LoadDocumentsParams 加载文档的参数
type LoadDocumentsTool ¶
type LoadDocumentsTool struct {
// contains filtered or unexported fields
}
LoadDocumentsTool 文档加载工具 提供将文档加载到知识库的功能
type MySQLAlterTableParams ¶
type MySQLAlterTableParams struct {
TableName string `json:"tableName" jsonschema:"description=表名,required"`
SQL string `json:"sql" jsonschema:"description=修改表的SQL语句,required"`
}
MySQLAlterTableParams 修改表参数
type MySQLAlterTableTool ¶
type MySQLAlterTableTool struct {
// contains filtered or unexported fields
}
MySQLAlterTableTool 修改表工具
type MySQLCountQueryParams ¶
type MySQLCountQueryParams struct {
TableName string `json:"tableName" jsonschema:"description=表名,required"`
Where map[string]interface{} `json:"where,omitempty" jsonschema:"description=计数条件"`
}
MySQLCountQueryParams 计数参数
type MySQLCountQueryTool ¶
type MySQLCountQueryTool struct {
// contains filtered or unexported fields
}
MySQLCountQueryTool 计数查询工具
type MySQLCreateIndexParams ¶
type MySQLCreateIndexParams struct {
TableName string `json:"tableName" jsonschema:"description=表名,required"`
IndexName string `json:"indexName" jsonschema:"description=索引名称,required"`
Columns []string `json:"columns" jsonschema:"description=索引列名列表,required"`
IndexType string `json:"indexType,omitempty" jsonschema:"description=索引类型:BTREE, HASH, FULLTEXT, SPATIAL"`
Unique bool `json:"unique,omitempty" jsonschema:"description=是否为唯一索引"`
}
MySQLCreateIndexParams 创建索引参数
type MySQLCreateIndexTool ¶
type MySQLCreateIndexTool struct {
// contains filtered or unexported fields
}
MySQLCreateIndexTool 创建索引工具
type MySQLCreateTableParams ¶
type MySQLCreateTableParams struct {
TableName string `json:"tableName" jsonschema:"description=表名,required"`
SQL string `json:"sql" jsonschema:"description=创建表的SQL语句,required"`
IfExists bool `json:"ifExists,omitempty" jsonschema:"description=如果表存在是否跳过,默认false"`
Engine string `json:"engine,omitempty" jsonschema:"description=存储引擎,默认InnoDB"`
Charset string `json:"charset,omitempty" jsonschema:"description=字符集,默认utf8mb4"`
Collate string `json:"collate,omitempty" jsonschema:"description=排序规则,默认utf8mb4_unicode_ci"`
}
MySQLCreateTableParams 创建表参数
type MySQLCreateTableTool ¶
type MySQLCreateTableTool struct {
// contains filtered or unexported fields
}
MySQLCreateTableTool 创建表工具
type MySQLDeleteQueryParams ¶
type MySQLDeleteQueryParams struct {
TableName string `json:"tableName" jsonschema:"description=表名,required"`
Where map[string]interface{} `json:"where" jsonschema:"description=删除条件,required"`
}
MySQLDeleteQueryParams 删除参数
type MySQLDeleteQueryTool ¶
type MySQLDeleteQueryTool struct {
// contains filtered or unexported fields
}
MySQLDeleteQueryTool 删除数据工具
type MySQLDescribeTableParams ¶
type MySQLDescribeTableParams struct {
TableName string `json:"tableName" jsonschema:"description=表名,required"`
}
MySQLDescribeTableParams 描述表参数
type MySQLDescribeTableTool ¶
type MySQLDescribeTableTool struct {
// contains filtered or unexported fields
}
MySQLDescribeTableTool 描述表结构工具
type MySQLListDatabasesParams ¶
type MySQLListDatabasesParams struct{}
MySQLListDatabasesParams 列出数据库参数
type MySQLListDatabasesTool ¶
type MySQLListDatabasesTool struct {
// contains filtered or unexported fields
}
MySQLListDatabasesTool 列出数据库工具
type MySQLListTablesParams ¶
type MySQLListTablesParams struct {
Database string `json:"database,omitempty" jsonschema:"description=数据库名称,不指定时使用当前数据库"`
}
MySQLListTablesParams 列出表参数
type MySQLListTablesTool ¶
type MySQLListTablesTool struct {
// contains filtered or unexported fields
}
MySQLListTablesTool 列出表工具
type MySQLReadQueryParams ¶
type MySQLReadQueryParams struct {
Query string `json:"query" jsonschema:"description=SQL查询语句,required"`
Params []interface{} `json:"params,omitempty" jsonschema:"description=查询参数"`
Limit int `json:"limit,omitempty" jsonschema:"description=结果限制数量,默认100"`
}
MySQLReadQueryParams 查询参数
type MySQLReadQueryTool ¶
type MySQLReadQueryTool struct {
// contains filtered or unexported fields
}
MySQLReadQueryTool 查询数据工具
type MySQLShowIndexesParams ¶
type MySQLShowIndexesParams struct {
TableName string `json:"tableName" jsonschema:"description=表名,required"`
}
MySQLShowIndexesParams 显示索引参数
type MySQLShowIndexesTool ¶
type MySQLShowIndexesTool struct {
// contains filtered or unexported fields
}
MySQLShowIndexesTool 显示索引工具
type MySQLUpdateQueryParams ¶
type MySQLUpdateQueryParams struct {
TableName string `json:"tableName" jsonschema:"description=表名,required"`
Where map[string]interface{} `json:"where" jsonschema:"description=更新条件,required"`
Data map[string]interface{} `json:"data" jsonschema:"description=要更新的数据,required"`
}
MySQLUpdateQueryParams 更新参数
type MySQLUpdateQueryTool ¶
type MySQLUpdateQueryTool struct {
// contains filtered or unexported fields
}
MySQLUpdateQueryTool 更新数据工具
type MySQLWriteQueryParams ¶
type MySQLWriteQueryParams struct {
TableName string `json:"tableName" jsonschema:"description=表名,required"`
Data []map[string]interface{} `json:"data" jsonschema:"description=要插入的数据,required"`
OnDuplicate string `json:"onDuplicate,omitempty" jsonschema:"description=重复键处理方式:ignore, update, replace"`
}
MySQLWriteQueryParams 写入参数
type MySQLWriteQueryTool ¶
type MySQLWriteQueryTool struct {
// contains filtered or unexported fields
}
MySQLWriteQueryTool 写入数据工具
type ReadQueryParams ¶
type ReadQueryParams struct {
Query string `json:"query" jsonschema:"description=SQL查询语句,required"`
Params []interface{} `json:"params,omitempty" jsonschema:"description=查询参数"`
Limit int `json:"limit,omitempty" jsonschema:"description=结果限制数量,默认100"`
}
ReadQueryParams 查询参数
type ReadQueryTool ¶
type ReadQueryTool struct {
// contains filtered or unexported fields
}
ReadQueryTool 查询数据工具
type SearchDocumentsTool ¶
type SearchDocumentsTool struct {
// contains filtered or unexported fields
}
SearchDocumentsTool 文档搜索工具 提供在知识库中搜索文档的功能
type SearchParams ¶
type SearchParams struct {
Query string `json:"query" jsonschema:"description=搜索查询,required"`
}
SearchParams 搜索参数
type ShellResult ¶
type ShellResult struct {
Command string `json:"command"` // 执行的命令
ExitCode int `json:"exitCode"` // 退出码
Stdout string `json:"stdout"` // 标准输出
Stderr string `json:"stderr"` // 标准错误输出
Success bool `json:"success"` // 是否执行成功
Error string `json:"error,omitempty"` // 错误信息
Duration string `json:"duration"` // 执行时长
WorkingDir string `json:"workingDir"` // 工作目录
Operation string `json:"operation"` // 操作类型
}
ShellResult 表示命令执行的结果
type ShellTool ¶
type ShellTool struct{}
func (*ShellTool) ChangeDirectory ¶
ChangeDirectory 切换当前工作目录
func (*ShellTool) GetCurrentDirectory ¶
GetCurrentDirectory 获取当前工作目录
type SystemInfoParams ¶
type SystemInfoParams struct {
InfoType string `` /* 167-byte string literal not displayed */
}
SystemInfoParams 表示系统信息查询的参数
type ThinkParams ¶
type ThinkParams struct {
Thought string `json:"thought" jsonschema:"description=思考内容和推理过程,required"`
}
ThinkParams 思考参数
type ThinkResult ¶
type ThinkResult struct {
Thought string `json:"thought"`
ThoughtsLog []string `json:"thoughtsLog"`
Success bool `json:"success"`
Error string `json:"error,omitempty"`
Operation string `json:"operation"`
Timestamp int64 `json:"timestamp"`
}
ThinkResult 思考结果
type TimeParams ¶
type TimeParams struct {
Operation string `` /* 165-byte string literal not displayed */
Format string `json:"format,omitempty" jsonschema:"description=时间格式,如 2006-01-02 15:04:05"`
Time1 string `json:"time1,omitempty" jsonschema:"description=第一个时间点"`
Time2 string `json:"time2,omitempty" jsonschema:"description=第二个时间点"`
}
场景3:时间日期工具
type UpdateQueryParams ¶
type UpdateQueryParams struct {
TableName string `json:"tableName" jsonschema:"description=表名,required"`
Where map[string]interface{} `json:"where" jsonschema:"description=更新条件,required"`
Data map[string]interface{} `json:"data" jsonschema:"description=要更新的数据,required"`
}
UpdateQueryParams 更新参数
type UpdateQueryTool ¶
type UpdateQueryTool struct {
// contains filtered or unexported fields
}
UpdateQueryTool 更新数据工具
type WeatherParams ¶
type WeatherParams struct {
City string `json:"city" jsonschema:"description=要查询的城市名称,required"`
Date string `json:"date,omitempty" jsonschema:"description=查询日期,格式为YYYY-MM-DD,不填则查询今天"`
}
场景2:天气查询工具
type WriteQueryParams ¶
type WriteQueryParams struct {
TableName string `json:"tableName" jsonschema:"description=表名,required"`
Data []map[string]interface{} `json:"data" jsonschema:"description=要插入的数据,required"`
}
WriteQueryParams 写入参数
type WriteQueryTool ¶
type WriteQueryTool struct {
// contains filtered or unexported fields
}
WriteQueryTool 写入数据工具