@balkangraph/orgchart.js 8.15.30 → 8.15.31

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
@@ -2910,9 +2910,42 @@ declare namespace OrgChart {
2910
2910
  layoutIcon?: string;
2911
2911
  }
2912
2912
 
2913
-
2914
2913
  /**
2915
2914
  * When you implement function calling in a prompt, you create a tools object, which contains one or more function declarations.
2915
+ * ```typescript
2916
+ * var chart = new OrgChart('#tree', {
2917
+ * enableAI: true,
2918
+ * aiChatTools: [{
2919
+ * functionName: 'sendEmail',
2920
+ * functionDescription: 'Send an email to a given employee with a subject and message.',
2921
+ * functionParameters: {
2922
+ * type: "object",
2923
+ * properties: {
2924
+ * to: {
2925
+ * type: "string",
2926
+ * description: "The employee email address."
2927
+ * },
2928
+ * subject: {
2929
+ * type: "string",
2930
+ * description: "Email subject line."
2931
+ * },
2932
+ * body: {
2933
+ * type: "string",
2934
+ * description: "Body of the email message."
2935
+ * }
2936
+ * },
2937
+ * required: [
2938
+ * "to",
2939
+ * "subject",
2940
+ * "body"
2941
+ * },
2942
+ * additionalProperties: false
2943
+ * },
2944
+ * strict: true
2945
+ * }]
2946
+ * });
2947
+ * ```
2948
+ * [Go to AI doc page for more details](https://balkan.app/OrgChartJS/Docs/AI)
2916
2949
  */
2917
2950
  interface aiChatTool {
2918
2951
  /**