@iqai/adk 0.0.14 → 0.0.15

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @iqai/adk
2
2
 
3
+ ## 0.0.15
4
+
5
+ ### Patch Changes
6
+
7
+ - 033217e: google-llm: exclude exclusive min/max from tool calls
8
+
3
9
  ## 0.0.14
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -649,6 +649,7 @@ declare class GoogleLLM extends BaseLLM {
649
649
  private convertFunctionsToTools;
650
650
  /**
651
651
  * Convert parameter types to Google Gemini format (uppercase types)
652
+ * Also removes unsupported fields like exclusiveMinimum/exclusiveMaximum
652
653
  */
653
654
  private convertParametersToGoogleFormat;
654
655
  /**
package/dist/index.d.ts CHANGED
@@ -649,6 +649,7 @@ declare class GoogleLLM extends BaseLLM {
649
649
  private convertFunctionsToTools;
650
650
  /**
651
651
  * Convert parameter types to Google Gemini format (uppercase types)
652
+ * Also removes unsupported fields like exclusiveMinimum/exclusiveMaximum
652
653
  */
653
654
  private convertParametersToGoogleFormat;
654
655
  /**
package/dist/index.js CHANGED
@@ -4849,10 +4849,12 @@ var GoogleLLM = class extends BaseLLM {
4849
4849
  }
4850
4850
  /**
4851
4851
  * Convert parameter types to Google Gemini format (uppercase types)
4852
+ * Also removes unsupported fields like exclusiveMinimum/exclusiveMaximum
4852
4853
  */
4853
4854
  convertParametersToGoogleFormat(parameters) {
4854
4855
  if (!parameters) return parameters;
4855
- const converted = { ...parameters };
4856
+ const { exclusiveMinimum, exclusiveMaximum, ...rest } = parameters;
4857
+ const converted = { ...rest };
4856
4858
  if (converted.type && typeof converted.type === "string") {
4857
4859
  converted.type = converted.type.toUpperCase();
4858
4860
  }
@@ -4860,10 +4862,7 @@ var GoogleLLM = class extends BaseLLM {
4860
4862
  converted.properties = { ...converted.properties };
4861
4863
  for (const [key, prop] of Object.entries(converted.properties)) {
4862
4864
  if (prop && typeof prop === "object" && "type" in prop) {
4863
- converted.properties[key] = {
4864
- ...prop,
4865
- type: typeof prop.type === "string" ? prop.type.toUpperCase() : prop.type
4866
- };
4865
+ converted.properties[key] = this.convertParametersToGoogleFormat(prop);
4867
4866
  }
4868
4867
  }
4869
4868
  }
package/dist/index.mjs CHANGED
@@ -4849,10 +4849,12 @@ var GoogleLLM = class extends BaseLLM {
4849
4849
  }
4850
4850
  /**
4851
4851
  * Convert parameter types to Google Gemini format (uppercase types)
4852
+ * Also removes unsupported fields like exclusiveMinimum/exclusiveMaximum
4852
4853
  */
4853
4854
  convertParametersToGoogleFormat(parameters) {
4854
4855
  if (!parameters) return parameters;
4855
- const converted = { ...parameters };
4856
+ const { exclusiveMinimum, exclusiveMaximum, ...rest } = parameters;
4857
+ const converted = { ...rest };
4856
4858
  if (converted.type && typeof converted.type === "string") {
4857
4859
  converted.type = converted.type.toUpperCase();
4858
4860
  }
@@ -4860,10 +4862,7 @@ var GoogleLLM = class extends BaseLLM {
4860
4862
  converted.properties = { ...converted.properties };
4861
4863
  for (const [key, prop] of Object.entries(converted.properties)) {
4862
4864
  if (prop && typeof prop === "object" && "type" in prop) {
4863
- converted.properties[key] = {
4864
- ...prop,
4865
- type: typeof prop.type === "string" ? prop.type.toUpperCase() : prop.type
4866
- };
4865
+ converted.properties[key] = this.convertParametersToGoogleFormat(prop);
4867
4866
  }
4868
4867
  }
4869
4868
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iqai/adk",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "description": "Agent Development Kit for TypeScript with multi-provider LLM support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",