@eggjs/tegg-types 3.85.0 → 3.85.1
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.
|
@@ -45,8 +45,8 @@ export interface CreateRunInput {
|
|
|
45
45
|
threadId?: string;
|
|
46
46
|
/**
|
|
47
47
|
* Populated by AgentRuntime before calling execRun.
|
|
48
|
-
* - true:
|
|
49
|
-
* - false:
|
|
48
|
+
* - true: the thread contains persisted user or assistant messages
|
|
49
|
+
* - false: the thread is new or does not contain conversation messages
|
|
50
50
|
*/
|
|
51
51
|
isResume?: boolean;
|
|
52
52
|
input: {
|
|
@@ -74,6 +74,16 @@ export interface AgentStore {
|
|
|
74
74
|
destroy?(): Promise<void>;
|
|
75
75
|
createThread(metadata?: Record<string, unknown>): Promise<ThreadRecord>;
|
|
76
76
|
getThread(threadId: string, options?: GetThreadOptions): Promise<ThreadRecord>;
|
|
77
|
+
/**
|
|
78
|
+
* Return whether the thread contains at least one conversation message
|
|
79
|
+
* (user or assistant), matching the default filtering semantics of
|
|
80
|
+
* {@link getThread}.
|
|
81
|
+
*
|
|
82
|
+
* Stores may implement this optional capability with a lightweight existence
|
|
83
|
+
* check. Implementations must throw `AgentNotFoundError` when the thread does
|
|
84
|
+
* not exist. AgentRuntime falls back to `getThread()` when it is absent.
|
|
85
|
+
*/
|
|
86
|
+
hasMessages?(threadId: string): Promise<boolean>;
|
|
77
87
|
/**
|
|
78
88
|
* Shallow-merge metadata into an existing thread.
|
|
79
89
|
* New values overwrite matching keys; omitted keys are preserved.
|
|
@@ -9,6 +9,14 @@ export interface ObjectStorageClient {
|
|
|
9
9
|
put(key: string, value: string): Promise<void>;
|
|
10
10
|
/** Read the full object at `key`. Returns `null` if the object does not exist. */
|
|
11
11
|
get(key: string): Promise<string | null>;
|
|
12
|
+
/**
|
|
13
|
+
* Read an inclusive byte range from the object at `key`.
|
|
14
|
+
* Returns `null` if the object does not exist.
|
|
15
|
+
*
|
|
16
|
+
* This method is optional. Callers must treat a trailing partial UTF-8
|
|
17
|
+
* sequence or record as incomplete because `end` is a byte offset.
|
|
18
|
+
*/
|
|
19
|
+
getRange?(key: string, start: number, end: number): Promise<string | null>;
|
|
12
20
|
/**
|
|
13
21
|
* Append `value` to an existing Appendable Object.
|
|
14
22
|
* If the object does not exist yet, create it.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/tegg-types",
|
|
3
|
-
"version": "3.85.
|
|
3
|
+
"version": "3.85.1",
|
|
4
4
|
"description": "tegg types",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"egg",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"ts-node": "^10.9.1",
|
|
46
46
|
"typescript": "^5.0.4"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "d6e42852392cf3161c5ae607c9c357a842324527"
|
|
49
49
|
}
|