listpage-next-ai 0.0.261 → 0.0.263
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +3 -3
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -122,18 +122,18 @@ function createDatabaseTools(options) {
|
|
|
122
122
|
}),
|
|
123
123
|
onGenerateChart && (0, external_langchain_namespaceObject.tool)(async ({ sql, chartConfig, title })=>{
|
|
124
124
|
try {
|
|
125
|
-
await onGenerateChart({
|
|
125
|
+
const id = await onGenerateChart({
|
|
126
126
|
sql,
|
|
127
127
|
title,
|
|
128
128
|
chartConfig
|
|
129
129
|
});
|
|
130
|
-
return
|
|
130
|
+
return id;
|
|
131
131
|
} catch (error) {
|
|
132
132
|
return `工具目前不可用:${error.message}`;
|
|
133
133
|
}
|
|
134
134
|
}, {
|
|
135
135
|
name: 'generate_chart',
|
|
136
|
-
description: '
|
|
136
|
+
description: '在需要可视化展示数据或者生成图表时调用该工具,用于生成图表,仅需调用,前端自动展示,无需额外处理。',
|
|
137
137
|
schema: {
|
|
138
138
|
type: 'object',
|
|
139
139
|
properties: {
|