@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 +6 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -5
- package/dist/index.mjs +4 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
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
|
|
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
|
|
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
|
}
|