@dvina/agents 0.3.6 → 0.3.7
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/dist/index.d.mts +5 -15
- package/dist/index.d.ts +5 -15
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -65,12 +65,14 @@ interface FinalContentEvent extends BaseStreamEvent {
|
|
|
65
65
|
usage: UsageMeta;
|
|
66
66
|
}
|
|
67
67
|
type StreamEvent = MessageStartEvent | MessageEndEvent | ChatTitleEvent | AudioEvent | TextBlockEvent | TextDeltaEvent | ToolStartEvent | ToolResultEvent | ReasoningEvent | ToolInputDeltaEvent | FinalContentEvent;
|
|
68
|
-
interface
|
|
68
|
+
interface ToolSpec {
|
|
69
|
+
toolKit: string;
|
|
69
70
|
name: string;
|
|
70
71
|
description: string;
|
|
71
|
-
|
|
72
|
-
toolKit: string;
|
|
72
|
+
inputSchema: ZodObject;
|
|
73
73
|
toolKitIconUrl?: string;
|
|
74
|
+
}
|
|
75
|
+
interface ToolDefinition extends ToolSpec {
|
|
74
76
|
exec: (input: any) => Promise<unknown> | unknown;
|
|
75
77
|
}
|
|
76
78
|
interface ToolCall {
|
|
@@ -192,18 +194,6 @@ declare class LangchainAgentFactory implements AgentFactory {
|
|
|
192
194
|
createAgent(options: CreateAgentOptions): Promise<Agent>;
|
|
193
195
|
}
|
|
194
196
|
|
|
195
|
-
interface ToolSpec {
|
|
196
|
-
/**
|
|
197
|
-
* @deprecated
|
|
198
|
-
* This will be removed. Use toolKit:name as identifier
|
|
199
|
-
*/
|
|
200
|
-
id: string;
|
|
201
|
-
name: string;
|
|
202
|
-
description: string;
|
|
203
|
-
inputSchema: ZodObject;
|
|
204
|
-
toolKit: string;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
197
|
/**
|
|
208
198
|
* A single tool provider can provide more than 1 toolkits.
|
|
209
199
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -65,12 +65,14 @@ interface FinalContentEvent extends BaseStreamEvent {
|
|
|
65
65
|
usage: UsageMeta;
|
|
66
66
|
}
|
|
67
67
|
type StreamEvent = MessageStartEvent | MessageEndEvent | ChatTitleEvent | AudioEvent | TextBlockEvent | TextDeltaEvent | ToolStartEvent | ToolResultEvent | ReasoningEvent | ToolInputDeltaEvent | FinalContentEvent;
|
|
68
|
-
interface
|
|
68
|
+
interface ToolSpec {
|
|
69
|
+
toolKit: string;
|
|
69
70
|
name: string;
|
|
70
71
|
description: string;
|
|
71
|
-
|
|
72
|
-
toolKit: string;
|
|
72
|
+
inputSchema: ZodObject;
|
|
73
73
|
toolKitIconUrl?: string;
|
|
74
|
+
}
|
|
75
|
+
interface ToolDefinition extends ToolSpec {
|
|
74
76
|
exec: (input: any) => Promise<unknown> | unknown;
|
|
75
77
|
}
|
|
76
78
|
interface ToolCall {
|
|
@@ -192,18 +194,6 @@ declare class LangchainAgentFactory implements AgentFactory {
|
|
|
192
194
|
createAgent(options: CreateAgentOptions): Promise<Agent>;
|
|
193
195
|
}
|
|
194
196
|
|
|
195
|
-
interface ToolSpec {
|
|
196
|
-
/**
|
|
197
|
-
* @deprecated
|
|
198
|
-
* This will be removed. Use toolKit:name as identifier
|
|
199
|
-
*/
|
|
200
|
-
id: string;
|
|
201
|
-
name: string;
|
|
202
|
-
description: string;
|
|
203
|
-
inputSchema: ZodObject;
|
|
204
|
-
toolKit: string;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
197
|
/**
|
|
208
198
|
* A single tool provider can provide more than 1 toolkits.
|
|
209
199
|
*/
|
package/dist/index.js
CHANGED
|
@@ -21622,7 +21622,7 @@ ${memorySystemPrompt}` : memorySystemPrompt;
|
|
|
21622
21622
|
{
|
|
21623
21623
|
name: t.name,
|
|
21624
21624
|
description: t.description,
|
|
21625
|
-
schema: t.
|
|
21625
|
+
schema: t.inputSchema,
|
|
21626
21626
|
metadata: {
|
|
21627
21627
|
toolKit: t.toolKit,
|
|
21628
21628
|
toolKitIconUrl: t.toolKitIconUrl
|