@balkangraph/orgchart.js 8.15.6 → 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 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,