@takeshape/util 11.95.5 → 11.97.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/dist/common/agents.d.ts +36 -0
- package/dist/common/agents.js +1 -0
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.js +1 -0
- package/package.json +4 -3
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { CoreMessage } from 'ai';
|
|
2
|
+
export type AgentSessionValueContentOutput = {
|
|
3
|
+
content: unknown;
|
|
4
|
+
};
|
|
5
|
+
export type AgentSessionValueChatOutput = AgentSessionValueContentOutput & {
|
|
6
|
+
artifact?: Record<string, unknown>;
|
|
7
|
+
references: Array<{
|
|
8
|
+
_tid: string;
|
|
9
|
+
}>;
|
|
10
|
+
};
|
|
11
|
+
export type AgentSessionValueOutput = AgentSessionValueContentOutput | AgentSessionValueChatOutput;
|
|
12
|
+
export type AgentSessionValue<Output = AgentSessionValueOutput> = {
|
|
13
|
+
/**
|
|
14
|
+
* This is a cludge because agent state outputs are not expected to be normalized.
|
|
15
|
+
*
|
|
16
|
+
* @todo Refactor agent state outputs to be a normal object and handle appropriately.
|
|
17
|
+
*/
|
|
18
|
+
agentOutputPath: string;
|
|
19
|
+
includeMetadata?: true;
|
|
20
|
+
input: string;
|
|
21
|
+
output: Output;
|
|
22
|
+
};
|
|
23
|
+
export type AgentSession = {
|
|
24
|
+
id: string;
|
|
25
|
+
projectId: string;
|
|
26
|
+
agentName: string;
|
|
27
|
+
done: boolean;
|
|
28
|
+
previousStateId?: string;
|
|
29
|
+
currentStateId: string;
|
|
30
|
+
chatSessionIds: Record<string, string | undefined>;
|
|
31
|
+
sessionMemory: Record<string, unknown>;
|
|
32
|
+
stateOutputs: Record<string, unknown>;
|
|
33
|
+
currentValue?: AgentSessionValue;
|
|
34
|
+
userHistory: CoreMessage[];
|
|
35
|
+
agentHistory: CoreMessage[];
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/common/index.d.ts
CHANGED
package/dist/common/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takeshape/util",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.97.2",
|
|
4
4
|
"description": "Shared utilities",
|
|
5
5
|
"homepage": "https://www.takeshape.io",
|
|
6
6
|
"repository": {
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"tiny-invariant": "^1.2.0",
|
|
46
46
|
"uint8array-extras": "^1.4.0",
|
|
47
47
|
"url-parse": "^1.5.3",
|
|
48
|
-
"@takeshape/
|
|
49
|
-
"@takeshape/
|
|
48
|
+
"@takeshape/prism": "11.97.2",
|
|
49
|
+
"@takeshape/routing": "11.97.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/classnames": "^2.2.9",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"@types/markdown-draft-js": "^2.2.4",
|
|
57
57
|
"@types/mime-types": "^2.1.0",
|
|
58
58
|
"@types/shortid": "^0.0.29",
|
|
59
|
+
"ai": "4.1.54",
|
|
59
60
|
"domhandler": "^5.0.3",
|
|
60
61
|
"stripe": "13.8.0"
|
|
61
62
|
},
|