@balkangraph/orgchart.js 8.15.22 → 8.15.23

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
@@ -2872,6 +2872,40 @@ declare namespace OrgChart {
2872
2872
 
2873
2873
  /**
2874
2874
  * When you implement function calling in a prompt, you create a tools object, which contains one or more function declarations.
2875
+ * ```typescript
2876
+ * var chart = new OrgChart('#tree', {
2877
+ * enableAI: true,
2878
+ * aiChatTools: [{
2879
+ * functionName: 'sendEmail',
2880
+ * functionDescription: 'Send an email to a given employee with a subject and message.',
2881
+ * functionParameters: {
2882
+ * type: "object",
2883
+ * properties: {
2884
+ * to: {
2885
+ * type: "string",
2886
+ * description: "The employee email address."
2887
+ * },
2888
+ * subject: {
2889
+ * type: "string",
2890
+ * description: "Email subject line."
2891
+ * },
2892
+ * body: {
2893
+ * type: "string",
2894
+ * description: "Body of the email message."
2895
+ * }
2896
+ * },
2897
+ * required: [
2898
+ * "to",
2899
+ * "subject",
2900
+ * "body"
2901
+ * },
2902
+ * additionalProperties: false
2903
+ * },
2904
+ * strict: true
2905
+ * }]
2906
+ * });
2907
+ * ```
2908
+ * [Go to AI doc page for more details](https://balkan.app/OrgChartJS/Docs/AI)
2875
2909
  */
2876
2910
  interface aiChatTool {
2877
2911
  /**