@iqai/adk 0.1.15 → 0.1.16
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -3
- package/dist/index.mjs +8 -3
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Part, Content, Blob, SpeechConfig, AudioTranscriptionConfig, RealtimeInputConfig, ProactivityConfig, FunctionDeclaration, GroundingMetadata, GenerateContentResponseUsageMetadata, GenerateContentConfig, Schema, LiveConnectConfig, GoogleGenAI, FunctionCall } from '@google/genai';
|
|
2
2
|
export { Blob, Content, FunctionDeclaration, Schema as JSONSchema } from '@google/genai';
|
|
3
3
|
import { LanguageModel } from 'ai';
|
|
4
|
-
import * as z from 'zod
|
|
4
|
+
import * as z from 'zod';
|
|
5
|
+
import { z as z$1 } from 'zod';
|
|
5
6
|
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
6
7
|
import { CreateMessageRequestSchema, CreateMessageResultSchema, Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
|
-
import { z as z$1 } from 'zod';
|
|
8
8
|
import { Kysely, Generated } from 'kysely';
|
|
9
9
|
import { StorageOptions } from '@google-cloud/storage';
|
|
10
10
|
import { Tracer } from '@opentelemetry/api';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Part, Content, Blob, SpeechConfig, AudioTranscriptionConfig, RealtimeInputConfig, ProactivityConfig, FunctionDeclaration, GroundingMetadata, GenerateContentResponseUsageMetadata, GenerateContentConfig, Schema, LiveConnectConfig, GoogleGenAI, FunctionCall } from '@google/genai';
|
|
2
2
|
export { Blob, Content, FunctionDeclaration, Schema as JSONSchema } from '@google/genai';
|
|
3
3
|
import { LanguageModel } from 'ai';
|
|
4
|
-
import * as z from 'zod
|
|
4
|
+
import * as z from 'zod';
|
|
5
|
+
import { z as z$1 } from 'zod';
|
|
5
6
|
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
6
7
|
import { CreateMessageRequestSchema, CreateMessageResultSchema, Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
7
|
-
import { z as z$1 } from 'zod';
|
|
8
8
|
import { Kysely, Generated } from 'kysely';
|
|
9
9
|
import { StorageOptions } from '@google-cloud/storage';
|
|
10
10
|
import { Tracer } from '@opentelemetry/api';
|
package/dist/index.js
CHANGED
|
@@ -3855,7 +3855,8 @@ init_base_tool();
|
|
|
3855
3855
|
|
|
3856
3856
|
// src/tools/base/create-tool.ts
|
|
3857
3857
|
init_base_tool();
|
|
3858
|
-
var
|
|
3858
|
+
var _zod = require('zod'); var z = _interopRequireWildcard(_zod);
|
|
3859
|
+
var _zodtojsonschema = require('zod-to-json-schema');
|
|
3859
3860
|
var CreatedTool = class extends BaseTool {
|
|
3860
3861
|
|
|
3861
3862
|
|
|
@@ -3885,7 +3886,7 @@ var CreatedTool = class extends BaseTool {
|
|
|
3885
3886
|
} catch (error) {
|
|
3886
3887
|
if (error instanceof z.ZodError) {
|
|
3887
3888
|
return {
|
|
3888
|
-
error: `Invalid arguments for ${this.name}: ${
|
|
3889
|
+
error: `Invalid arguments for ${this.name}: ${error.message}`
|
|
3889
3890
|
};
|
|
3890
3891
|
}
|
|
3891
3892
|
return {
|
|
@@ -3903,7 +3904,11 @@ var CreatedTool = class extends BaseTool {
|
|
|
3903
3904
|
* Builds the function declaration from the Zod schema
|
|
3904
3905
|
*/
|
|
3905
3906
|
buildDeclaration() {
|
|
3906
|
-
const
|
|
3907
|
+
const rawParameters = _zodtojsonschema.zodToJsonSchema.call(void 0, this.schema, {
|
|
3908
|
+
target: "jsonSchema7",
|
|
3909
|
+
$refStrategy: "none"
|
|
3910
|
+
});
|
|
3911
|
+
const { $schema, ...parameters } = rawParameters;
|
|
3907
3912
|
return {
|
|
3908
3913
|
name: this.name,
|
|
3909
3914
|
description: this.description,
|
package/dist/index.mjs
CHANGED
|
@@ -3855,7 +3855,8 @@ init_base_tool();
|
|
|
3855
3855
|
|
|
3856
3856
|
// src/tools/base/create-tool.ts
|
|
3857
3857
|
init_base_tool();
|
|
3858
|
-
import * as z from "zod
|
|
3858
|
+
import * as z from "zod";
|
|
3859
|
+
import { zodToJsonSchema } from "zod-to-json-schema";
|
|
3859
3860
|
var CreatedTool = class extends BaseTool {
|
|
3860
3861
|
func;
|
|
3861
3862
|
schema;
|
|
@@ -3885,7 +3886,7 @@ var CreatedTool = class extends BaseTool {
|
|
|
3885
3886
|
} catch (error) {
|
|
3886
3887
|
if (error instanceof z.ZodError) {
|
|
3887
3888
|
return {
|
|
3888
|
-
error: `Invalid arguments for ${this.name}: ${
|
|
3889
|
+
error: `Invalid arguments for ${this.name}: ${error.message}`
|
|
3889
3890
|
};
|
|
3890
3891
|
}
|
|
3891
3892
|
return {
|
|
@@ -3903,7 +3904,11 @@ var CreatedTool = class extends BaseTool {
|
|
|
3903
3904
|
* Builds the function declaration from the Zod schema
|
|
3904
3905
|
*/
|
|
3905
3906
|
buildDeclaration() {
|
|
3906
|
-
const
|
|
3907
|
+
const rawParameters = zodToJsonSchema(this.schema, {
|
|
3908
|
+
target: "jsonSchema7",
|
|
3909
|
+
$refStrategy: "none"
|
|
3910
|
+
});
|
|
3911
|
+
const { $schema, ...parameters } = rawParameters;
|
|
3907
3912
|
return {
|
|
3908
3913
|
name: this.name,
|
|
3909
3914
|
description: this.description,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iqai/adk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
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",
|
|
@@ -44,7 +44,8 @@
|
|
|
44
44
|
"kysely": "^0.28.2",
|
|
45
45
|
"openai": "^4.93.0",
|
|
46
46
|
"uuid": "^11.1.0",
|
|
47
|
-
"zod": "^3.25.67"
|
|
47
|
+
"zod": "^3.25.67",
|
|
48
|
+
"zod-to-json-schema": "^3.24.6"
|
|
48
49
|
},
|
|
49
50
|
"peerDependencies": {
|
|
50
51
|
"better-sqlite3": "^11.10.0",
|