@eggjs/tegg-types
Advanced tools
@@ -34,2 +34,10 @@ import type { AgentMessage, InputMessage } from './AgentMessage'; | ||
| createdAt: number; | ||
| /** | ||
| * Id of the most recently created run on this thread, maintained by | ||
| * `createRun` as a best-effort pointer so callers can resolve a thread's | ||
| * latest run without an external index. Absent on threads that have no | ||
| * runs yet, and on threads created before this field existed — a missing | ||
| * value must be treated as "no recent run". | ||
| */ | ||
| latestRunId?: string; | ||
| } | ||
@@ -67,3 +75,10 @@ export interface RunRecord { | ||
| getRun(runId: string): Promise<RunRecord>; | ||
| /** | ||
| * Id of the most recent run created on the thread, or `null` when the | ||
| * thread exists but has no recorded run (including threads created before | ||
| * run tracking existed). Throws AgentNotFoundError when the thread itself | ||
| * does not exist. | ||
| */ | ||
| getLatestRunId(threadId: string): Promise<string | null>; | ||
| updateRun(runId: string, updates: Partial<RunRecord>): Promise<void>; | ||
| } |
+2
-2
| { | ||
| "name": "@eggjs/tegg-types", | ||
| "version": "3.80.1", | ||
| "version": "3.81.0", | ||
| "description": "tegg types", | ||
@@ -48,3 +48,3 @@ "keywords": [ | ||
| }, | ||
| "gitHead": "e2c8edcc9c90b024ad4dbe1f67731abe784cb809" | ||
| "gitHead": "32079c65e245fd36270e79b3d6217a294dd9aeee" | ||
| } |
133454
0.55%2668
0.57%