@integry/sdk 4.9.25 → 4.9.27

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/README.md CHANGED
@@ -49,9 +49,10 @@ activity fields for `type`, `activity_type`, `endpoint_id`, and `session_id`. Fo
49
49
 
50
50
  ## Headless function-to-tool conversion
51
51
 
52
- Use `getFunctionTools` when you already have function details (for example from `getFunctionDetails`) and only want a tool payload without rendering UI.
52
+ Use `getFunctionTools` when you already have function details (for example from `getFunctionDetails`) and only want a tool payload without rendering UI. `IntegryJS.Helpers.getFunctionTools` additionally pre-marks all top-level parameters as AI-Filled and seeds `default_arguments` for those fields.
53
53
 
54
54
  ```ts
55
55
  const tool = sdk.getFunctionTools(functionDetails);
56
+ const staticTool = IntegryJS.Helpers.getFunctionTools(functionDetails);
56
57
  ```
57
58
 
@@ -795,6 +795,7 @@ declare class EventEmitter<ESet extends EventSet> implements EventEmitterType<Ev
795
795
  }
796
796
  declare const Helpers: {
797
797
  getAuthHash: typeof HMAC;
798
+ getFunctionTools: (functionStructure: any) => FunctionTool;
798
799
  };
799
800
  /**
800
801
  * Integry JS SDK
@@ -814,6 +815,7 @@ declare class IntegryJS {
814
815
  static MarketplaceRenderModes: typeof MarketplaceRenderModes;
815
816
  static Helpers: {
816
817
  getAuthHash: (key: string, message: string) => Promise<string>;
818
+ getFunctionTools: (functionStructure: any) => FunctionTool;
817
819
  };
818
820
  private authModalId;
819
821
  private forceRerender;