@iqai/adk 0.3.1 → 0.3.2
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 +28 -0
- package/dist/index.d.mts +3 -7
- package/dist/index.d.ts +3 -7
- package/dist/index.js +149 -158
- package/dist/index.mjs +32 -41
- package/package.json +34 -35
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @iqai/adk
|
|
2
2
|
|
|
3
|
+
## 0.3.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2da690a: - **Dependency Updates:**
|
|
8
|
+
|
|
9
|
+
- Upgraded dependencies and devDependencies across multiple packages ensuring compatibility with the latest library versions.
|
|
10
|
+
|
|
11
|
+
- **Schema Handling:**
|
|
12
|
+
|
|
13
|
+
- Transitioned schema conversion to use `z.toJSONSchema`, reducing dependencies.
|
|
14
|
+
- Enhanced type safety in the workflow tool's schema handling.
|
|
15
|
+
|
|
16
|
+
- **Error Reporting and Validation:**
|
|
17
|
+
|
|
18
|
+
- Improved error messages in `AgentBuilder` for better debugging.
|
|
19
|
+
- Enhanced output validation for LLM.
|
|
20
|
+
|
|
21
|
+
- **AI SDK and Model Integration:**
|
|
22
|
+
|
|
23
|
+
- Refined model ID handling in `AiSdkLlm`.
|
|
24
|
+
- Updated field references to align with AI SDK changes.
|
|
25
|
+
|
|
26
|
+
- **Code Quality Enhancements:**
|
|
27
|
+
- Improved import order and code formatting for consistency.
|
|
28
|
+
|
|
29
|
+
This changeset ensures improved stability, security, and developer experience across the updated packages.
|
|
30
|
+
|
|
3
31
|
## 0.3.1
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { LanguageModel } from 'ai';
|
|
|
4
4
|
import * as z from 'zod';
|
|
5
5
|
import { z as z$1, ZodSchema, ZodType } from 'zod';
|
|
6
6
|
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
7
|
-
import {
|
|
7
|
+
import { CreateMessageRequest, CreateMessageResult, Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
8
8
|
import { Kysely, Generated } from 'kysely';
|
|
9
9
|
import { StorageOptions } from '@google-cloud/storage';
|
|
10
10
|
import { Tracer } from '@opentelemetry/api';
|
|
@@ -2047,8 +2047,8 @@ declare class McpError extends Error {
|
|
|
2047
2047
|
originalError?: Error;
|
|
2048
2048
|
constructor(message: string, type: McpErrorType, originalError?: Error);
|
|
2049
2049
|
}
|
|
2050
|
-
type McpSamplingRequest =
|
|
2051
|
-
type McpSamplingResponse =
|
|
2050
|
+
type McpSamplingRequest = CreateMessageRequest;
|
|
2051
|
+
type McpSamplingResponse = CreateMessageResult;
|
|
2052
2052
|
type SamplingHandler = (request: LlmRequest) => Promise<string | LlmResponse>;
|
|
2053
2053
|
|
|
2054
2054
|
declare class McpClientService {
|
|
@@ -2786,10 +2786,6 @@ declare class GoogleLlm extends BaseLlm {
|
|
|
2786
2786
|
* Sets display_name to null for the Gemini API (non-Vertex) backend.
|
|
2787
2787
|
*/
|
|
2788
2788
|
private removeDisplayNameIfPresent;
|
|
2789
|
-
/**
|
|
2790
|
-
* Builds function declaration log string.
|
|
2791
|
-
*/
|
|
2792
|
-
private buildFunctionDeclarationLog;
|
|
2793
2789
|
/**
|
|
2794
2790
|
* Provides the api client.
|
|
2795
2791
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { LanguageModel } from 'ai';
|
|
|
4
4
|
import * as z from 'zod';
|
|
5
5
|
import { z as z$1, ZodSchema, ZodType } from 'zod';
|
|
6
6
|
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
7
|
-
import {
|
|
7
|
+
import { CreateMessageRequest, CreateMessageResult, Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
8
8
|
import { Kysely, Generated } from 'kysely';
|
|
9
9
|
import { StorageOptions } from '@google-cloud/storage';
|
|
10
10
|
import { Tracer } from '@opentelemetry/api';
|
|
@@ -2047,8 +2047,8 @@ declare class McpError extends Error {
|
|
|
2047
2047
|
originalError?: Error;
|
|
2048
2048
|
constructor(message: string, type: McpErrorType, originalError?: Error);
|
|
2049
2049
|
}
|
|
2050
|
-
type McpSamplingRequest =
|
|
2051
|
-
type McpSamplingResponse =
|
|
2050
|
+
type McpSamplingRequest = CreateMessageRequest;
|
|
2051
|
+
type McpSamplingResponse = CreateMessageResult;
|
|
2052
2052
|
type SamplingHandler = (request: LlmRequest) => Promise<string | LlmResponse>;
|
|
2053
2053
|
|
|
2054
2054
|
declare class McpClientService {
|
|
@@ -2786,10 +2786,6 @@ declare class GoogleLlm extends BaseLlm {
|
|
|
2786
2786
|
* Sets display_name to null for the Gemini API (non-Vertex) backend.
|
|
2787
2787
|
*/
|
|
2788
2788
|
private removeDisplayNameIfPresent;
|
|
2789
|
-
/**
|
|
2790
|
-
* Builds function declaration log string.
|
|
2791
|
-
*/
|
|
2792
|
-
private buildFunctionDeclarationLog;
|
|
2793
2789
|
/**
|
|
2794
2790
|
* Provides the api client.
|
|
2795
2791
|
*/
|