@voltagent/core 0.1.81 → 0.1.83
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 +12 -4
- package/dist/index.d.ts +12 -4
- package/dist/index.js +14 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -5052,12 +5052,20 @@ declare class Agent<TProvider extends {
|
|
|
5052
5052
|
*/
|
|
5053
5053
|
isTelemetryConfigured(): boolean;
|
|
5054
5054
|
/**
|
|
5055
|
+
* Add tools or toolkits to the agent dynamically.
|
|
5056
|
+
* @param tools Array of tools or toolkits to add to the agent
|
|
5057
|
+
* @returns Object containing added tools
|
|
5058
|
+
*/
|
|
5059
|
+
addTools(tools: (Tool<any, any> | Toolkit)[]): {
|
|
5060
|
+
added: (Tool<any, any> | Toolkit)[];
|
|
5061
|
+
};
|
|
5062
|
+
/**
|
|
5063
|
+
* @deprecated Use addTools() instead. This method will be removed in a future version.
|
|
5055
5064
|
* Add one or more tools or toolkits to the agent.
|
|
5056
|
-
*
|
|
5057
|
-
* @returns Object containing added items (difficult to track precisely here, maybe simplify return)
|
|
5065
|
+
* @returns Object containing added items
|
|
5058
5066
|
*/
|
|
5059
|
-
addItems(items: (Tool<any> | Toolkit)[]): {
|
|
5060
|
-
added: (Tool<any> | Toolkit)[];
|
|
5067
|
+
addItems(items: (Tool<any, any> | Toolkit)[]): {
|
|
5068
|
+
added: (Tool<any, any> | Toolkit)[];
|
|
5061
5069
|
};
|
|
5062
5070
|
/**
|
|
5063
5071
|
* @internal
|
package/dist/index.d.ts
CHANGED
|
@@ -5052,12 +5052,20 @@ declare class Agent<TProvider extends {
|
|
|
5052
5052
|
*/
|
|
5053
5053
|
isTelemetryConfigured(): boolean;
|
|
5054
5054
|
/**
|
|
5055
|
+
* Add tools or toolkits to the agent dynamically.
|
|
5056
|
+
* @param tools Array of tools or toolkits to add to the agent
|
|
5057
|
+
* @returns Object containing added tools
|
|
5058
|
+
*/
|
|
5059
|
+
addTools(tools: (Tool<any, any> | Toolkit)[]): {
|
|
5060
|
+
added: (Tool<any, any> | Toolkit)[];
|
|
5061
|
+
};
|
|
5062
|
+
/**
|
|
5063
|
+
* @deprecated Use addTools() instead. This method will be removed in a future version.
|
|
5055
5064
|
* Add one or more tools or toolkits to the agent.
|
|
5056
|
-
*
|
|
5057
|
-
* @returns Object containing added items (difficult to track precisely here, maybe simplify return)
|
|
5065
|
+
* @returns Object containing added items
|
|
5058
5066
|
*/
|
|
5059
|
-
addItems(items: (Tool<any> | Toolkit)[]): {
|
|
5060
|
-
added: (Tool<any> | Toolkit)[];
|
|
5067
|
+
addItems(items: (Tool<any, any> | Toolkit)[]): {
|
|
5068
|
+
added: (Tool<any, any> | Toolkit)[];
|
|
5061
5069
|
};
|
|
5062
5070
|
/**
|
|
5063
5071
|
* @internal
|
package/dist/index.js
CHANGED
|
@@ -15379,16 +15379,24 @@ ${retrieverContext}`;
|
|
|
15379
15379
|
return this.historyManager.isExporterConfigured();
|
|
15380
15380
|
}
|
|
15381
15381
|
/**
|
|
15382
|
-
* Add
|
|
15383
|
-
*
|
|
15384
|
-
* @returns Object containing added
|
|
15382
|
+
* Add tools or toolkits to the agent dynamically.
|
|
15383
|
+
* @param tools Array of tools or toolkits to add to the agent
|
|
15384
|
+
* @returns Object containing added tools
|
|
15385
15385
|
*/
|
|
15386
|
-
|
|
15387
|
-
this.toolManager.addItems(
|
|
15386
|
+
addTools(tools) {
|
|
15387
|
+
this.toolManager.addItems(tools);
|
|
15388
15388
|
return {
|
|
15389
|
-
added:
|
|
15389
|
+
added: tools
|
|
15390
15390
|
};
|
|
15391
15391
|
}
|
|
15392
|
+
/**
|
|
15393
|
+
* @deprecated Use addTools() instead. This method will be removed in a future version.
|
|
15394
|
+
* Add one or more tools or toolkits to the agent.
|
|
15395
|
+
* @returns Object containing added items
|
|
15396
|
+
*/
|
|
15397
|
+
addItems(items) {
|
|
15398
|
+
return this.addTools(items);
|
|
15399
|
+
}
|
|
15392
15400
|
/**
|
|
15393
15401
|
* @internal
|
|
15394
15402
|
* Internal method to set the VoltAgentExporter on the agent's HistoryManager.
|