@balkangraph/orgchart.js 8.15.5 → 8.15.7
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/orgchart.d.ts +14 -2
- package/orgchart.js +1 -1
- package/package.json +1 -1
package/orgchart.d.ts
CHANGED
|
@@ -1348,7 +1348,20 @@ declare class OrgChart {
|
|
|
1348
1348
|
event: any
|
|
1349
1349
|
}) => void): OrgChart;
|
|
1350
1350
|
|
|
1351
|
-
|
|
1351
|
+
/**
|
|
1352
|
+
* In onAIToolCalls we parse the AI responce to our functions
|
|
1353
|
+
* ```typescript
|
|
1354
|
+
* chart.onAIToolCalls(function(args){
|
|
1355
|
+
* for(var toolCall of args.toolCalls){
|
|
1356
|
+
* if (toolCall.FunctionName == 'sendEmail'){
|
|
1357
|
+
* toolCall.FunctionResult = sendEmail(toolCall.FunctionArguments);
|
|
1358
|
+
* }
|
|
1359
|
+
* }
|
|
1360
|
+
* });
|
|
1361
|
+
* ```
|
|
1362
|
+
* [Go to AI doc page for more details](https://balkan.app/OrgChartJS/Docs/AI)
|
|
1363
|
+
* @param listener
|
|
1364
|
+
*/
|
|
1352
1365
|
onAIToolCalls(listener: (this: OrgChart, args: {
|
|
1353
1366
|
toolCalls: Array<{
|
|
1354
1367
|
FunctionName : string,
|
|
@@ -2253,7 +2266,6 @@ declare namespace OrgChart {
|
|
|
2253
2266
|
const COLLAPSE_SUB_CHILDRENS: number;
|
|
2254
2267
|
|
|
2255
2268
|
|
|
2256
|
-
var template: object;
|
|
2257
2269
|
|
|
2258
2270
|
interface node {
|
|
2259
2271
|
/**
|