@iqai/adk 0.3.1 → 0.3.3
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 +34 -0
- package/dist/index.d.mts +4 -7
- package/dist/index.d.ts +4 -7
- package/dist/index.js +188 -174
- package/dist/index.mjs +71 -57
- package/package.json +34 -35
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @iqai/adk
|
|
2
2
|
|
|
3
|
+
## 0.3.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5d19967: Disables triming on errors for logger
|
|
8
|
+
|
|
9
|
+
## 0.3.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 2da690a: - **Dependency Updates:**
|
|
14
|
+
|
|
15
|
+
- Upgraded dependencies and devDependencies across multiple packages ensuring compatibility with the latest library versions.
|
|
16
|
+
|
|
17
|
+
- **Schema Handling:**
|
|
18
|
+
|
|
19
|
+
- Transitioned schema conversion to use `z.toJSONSchema`, reducing dependencies.
|
|
20
|
+
- Enhanced type safety in the workflow tool's schema handling.
|
|
21
|
+
|
|
22
|
+
- **Error Reporting and Validation:**
|
|
23
|
+
|
|
24
|
+
- Improved error messages in `AgentBuilder` for better debugging.
|
|
25
|
+
- Enhanced output validation for LLM.
|
|
26
|
+
|
|
27
|
+
- **AI SDK and Model Integration:**
|
|
28
|
+
|
|
29
|
+
- Refined model ID handling in `AiSdkLlm`.
|
|
30
|
+
- Updated field references to align with AI SDK changes.
|
|
31
|
+
|
|
32
|
+
- **Code Quality Enhancements:**
|
|
33
|
+
- Improved import order and code formatting for consistency.
|
|
34
|
+
|
|
35
|
+
This changeset ensures improved stability, security, and developer experience across the updated packages.
|
|
36
|
+
|
|
3
37
|
## 0.3.1
|
|
4
38
|
|
|
5
39
|
### 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';
|
|
@@ -35,6 +35,7 @@ declare class Logger {
|
|
|
35
35
|
color?: (txt: string) => string;
|
|
36
36
|
pad?: number;
|
|
37
37
|
borderChar?: string;
|
|
38
|
+
wrap?: boolean;
|
|
38
39
|
}): string;
|
|
39
40
|
/**
|
|
40
41
|
* Structured warning with code, suggestion, context.
|
|
@@ -2047,8 +2048,8 @@ declare class McpError extends Error {
|
|
|
2047
2048
|
originalError?: Error;
|
|
2048
2049
|
constructor(message: string, type: McpErrorType, originalError?: Error);
|
|
2049
2050
|
}
|
|
2050
|
-
type McpSamplingRequest =
|
|
2051
|
-
type McpSamplingResponse =
|
|
2051
|
+
type McpSamplingRequest = CreateMessageRequest;
|
|
2052
|
+
type McpSamplingResponse = CreateMessageResult;
|
|
2052
2053
|
type SamplingHandler = (request: LlmRequest) => Promise<string | LlmResponse>;
|
|
2053
2054
|
|
|
2054
2055
|
declare class McpClientService {
|
|
@@ -2786,10 +2787,6 @@ declare class GoogleLlm extends BaseLlm {
|
|
|
2786
2787
|
* Sets display_name to null for the Gemini API (non-Vertex) backend.
|
|
2787
2788
|
*/
|
|
2788
2789
|
private removeDisplayNameIfPresent;
|
|
2789
|
-
/**
|
|
2790
|
-
* Builds function declaration log string.
|
|
2791
|
-
*/
|
|
2792
|
-
private buildFunctionDeclarationLog;
|
|
2793
2790
|
/**
|
|
2794
2791
|
* Provides the api client.
|
|
2795
2792
|
*/
|
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';
|
|
@@ -35,6 +35,7 @@ declare class Logger {
|
|
|
35
35
|
color?: (txt: string) => string;
|
|
36
36
|
pad?: number;
|
|
37
37
|
borderChar?: string;
|
|
38
|
+
wrap?: boolean;
|
|
38
39
|
}): string;
|
|
39
40
|
/**
|
|
40
41
|
* Structured warning with code, suggestion, context.
|
|
@@ -2047,8 +2048,8 @@ declare class McpError extends Error {
|
|
|
2047
2048
|
originalError?: Error;
|
|
2048
2049
|
constructor(message: string, type: McpErrorType, originalError?: Error);
|
|
2049
2050
|
}
|
|
2050
|
-
type McpSamplingRequest =
|
|
2051
|
-
type McpSamplingResponse =
|
|
2051
|
+
type McpSamplingRequest = CreateMessageRequest;
|
|
2052
|
+
type McpSamplingResponse = CreateMessageResult;
|
|
2052
2053
|
type SamplingHandler = (request: LlmRequest) => Promise<string | LlmResponse>;
|
|
2053
2054
|
|
|
2054
2055
|
declare class McpClientService {
|
|
@@ -2786,10 +2787,6 @@ declare class GoogleLlm extends BaseLlm {
|
|
|
2786
2787
|
* Sets display_name to null for the Gemini API (non-Vertex) backend.
|
|
2787
2788
|
*/
|
|
2788
2789
|
private removeDisplayNameIfPresent;
|
|
2789
|
-
/**
|
|
2790
|
-
* Builds function declaration log string.
|
|
2791
|
-
*/
|
|
2792
|
-
private buildFunctionDeclarationLog;
|
|
2793
2790
|
/**
|
|
2794
2791
|
* Provides the api client.
|
|
2795
2792
|
*/
|