@iqai/adk 0.3.0 → 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 CHANGED
@@ -1,5 +1,39 @@
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
+
31
+ ## 0.3.1
32
+
33
+ ### Patch Changes
34
+
35
+ - b6c0344: Improved adk cli experience
36
+
3
37
  ## 0.3.0
4
38
 
5
39
  ### Minor Changes
package/README.md CHANGED
@@ -73,6 +73,7 @@ OPENAI_API_KEY=your_openai_api_key
73
73
  ANTHROPIC_API_KEY=your_anthropic_api_key
74
74
  GOOGLE_API_KEY=your_google_api_key
75
75
  ```
76
+
76
77
  The library uses `dotenv` to load these variables automatically if `dotenv.config()` is called in your application.
77
78
 
78
79
  ## 📖 Basic Usage
@@ -167,6 +168,7 @@ async function createWorkflowAgent() {
167
168
  ```
168
169
 
169
170
  **Benefits of AgentBuilder:**
171
+
170
172
  - **Reduced Boilerplate**: ~80% less setup code compared to manual configuration
171
173
  - **Fluent Interface**: Readable, chainable method calls
172
174
  - **Automatic Management**: Handles session and runner creation automatically
@@ -328,4 +330,4 @@ MIT License - see [LICENSE](https://github.com/IQAIcom/adk-ts/blob/main/LICENSE.
328
330
 
329
331
  ---
330
332
 
331
- **Ready to build your first AI agent?** Visit [https://adk.iqai.com](https://adk.iqai.com) to get started!
333
+ **Ready to build your first AI agent?** Visit [https://adk.iqai.com](https://adk.iqai.com) to get started!
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 { CreateMessageRequestSchema, CreateMessageResultSchema, Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
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 = z$1.infer<typeof CreateMessageRequestSchema>;
2051
- type McpSamplingResponse = z$1.infer<typeof CreateMessageResultSchema>;
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 { CreateMessageRequestSchema, CreateMessageResultSchema, Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
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 = z$1.infer<typeof CreateMessageRequestSchema>;
2051
- type McpSamplingResponse = z$1.infer<typeof CreateMessageResultSchema>;
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
  */