@eggjs/tegg-types
Advanced tools
@@ -48,4 +48,4 @@ import type { AgentMessage } from './AgentMessage'; | ||
| * Populated by AgentRuntime before calling execRun. | ||
| * - true: threadId was provided (resume existing conversation) | ||
| * - false: no threadId provided, new thread created | ||
| * - true: the thread contains persisted user or assistant messages | ||
| * - false: the thread is new or does not contain conversation messages | ||
| */ | ||
@@ -52,0 +52,0 @@ isResume?: boolean; |
@@ -78,2 +78,12 @@ import type { AgentMessage, InputMessage } from './AgentMessage'; | ||
| /** | ||
| * Return whether the thread contains at least one conversation message | ||
| * (user or assistant), matching the default filtering semantics of | ||
| * {@link getThread}. | ||
| * | ||
| * Stores may implement this optional capability with a lightweight existence | ||
| * check. Implementations must throw `AgentNotFoundError` when the thread does | ||
| * not exist. AgentRuntime falls back to `getThread()` when it is absent. | ||
| */ | ||
| hasMessages?(threadId: string): Promise<boolean>; | ||
| /** | ||
| * Shallow-merge metadata into an existing thread. | ||
@@ -80,0 +90,0 @@ * New values overwrite matching keys; omitted keys are preserved. |
@@ -13,2 +13,10 @@ /** | ||
| /** | ||
| * Read an inclusive byte range from the object at `key`. | ||
| * Returns `null` if the object does not exist. | ||
| * | ||
| * This method is optional. Callers must treat a trailing partial UTF-8 | ||
| * sequence or record as incomplete because `end` is a byte offset. | ||
| */ | ||
| getRange?(key: string, start: number, end: number): Promise<string | null>; | ||
| /** | ||
| * Append `value` to an existing Appendable Object. | ||
@@ -15,0 +23,0 @@ * If the object does not exist yet, create it. |
+2
-2
| { | ||
| "name": "@eggjs/tegg-types", | ||
| "version": "3.85.0", | ||
| "version": "3.85.1", | ||
| "description": "tegg types", | ||
@@ -48,3 +48,3 @@ "keywords": [ | ||
| }, | ||
| "gitHead": "b77c789189a8f3206c2289062dc5724de6f91452" | ||
| "gitHead": "d6e42852392cf3161c5ae607c9c357a842324527" | ||
| } |
147621
0.6%2919
0.62%