@rws-framework/ai-tools 3.6.0 → 3.7.0
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/package.json +1 -1
- package/src/types/IPrompt.ts +3 -1
package/package.json
CHANGED
package/src/types/IPrompt.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { ChainValues } from '@langchain/core/utils/types';
|
|
|
4
4
|
import { IContextToken } from './IContextToken';
|
|
5
5
|
import { BaseChatModel } from '@langchain/core/language_models/chat_models';
|
|
6
6
|
import z4, { Schema } from 'zod/v4';
|
|
7
|
+
import { z } from 'zod'; // Import regular zod for zodSchema
|
|
7
8
|
|
|
8
9
|
// General tool interfaces for AI models
|
|
9
10
|
interface IAIToolParameterBase {
|
|
@@ -49,7 +50,8 @@ interface IAITool {
|
|
|
49
50
|
name: string;
|
|
50
51
|
description: string;
|
|
51
52
|
input_schema?: IAIToolSchema;
|
|
52
|
-
|
|
53
|
+
zodSchema?: z.ZodTypeAny; // Support for regular Zod schemas
|
|
54
|
+
blockStream?: boolean;
|
|
53
55
|
}
|
|
54
56
|
|
|
55
57
|
interface IPromptHyperParameters {
|