@librechat/agents-types 1.6.0 → 1.6.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/package.json +1 -1
- package/tools.ts +23 -1
package/package.json
CHANGED
package/tools.ts
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
import type { RunnableToolLike } from '@langchain/core/runnables';
|
3
3
|
import type { StructuredToolInterface } from '@langchain/core/tools';
|
4
4
|
import type { ToolCall } from '@langchain/core/messages/tool';
|
5
|
-
import { ContentTypes } from '@/common';
|
5
|
+
import { ContentTypes, EnvVar } from '@/common';
|
6
6
|
|
7
7
|
/** Replacement type for `import type { ToolCall } from '@langchain/core/messages/tool'` in order to have stringified args typed */
|
8
8
|
export type CustomToolCall = {
|
@@ -45,3 +45,25 @@ export type ToolCallContent = {
|
|
45
45
|
type: ContentTypes.TOOL_CALL;
|
46
46
|
tool_call: ToolCall;
|
47
47
|
};
|
48
|
+
|
49
|
+
export type CodeExecutionToolParams = undefined | {
|
50
|
+
session_id?: string;
|
51
|
+
user_id?: string;
|
52
|
+
apiKey?: string;
|
53
|
+
[EnvVar.CODE_API_KEY]?: string;
|
54
|
+
}
|
55
|
+
|
56
|
+
export type FileRef = {
|
57
|
+
id: string;
|
58
|
+
name: string;
|
59
|
+
path?: string;
|
60
|
+
};
|
61
|
+
|
62
|
+
export type FileRefs = FileRef[];
|
63
|
+
|
64
|
+
export type ExecuteResult = {
|
65
|
+
session_id: string;
|
66
|
+
stdout: string;
|
67
|
+
stderr: string;
|
68
|
+
files?: FileRefs;
|
69
|
+
};
|