feat: project durable agent conversations
This commit is contained in:
@@ -111,9 +111,11 @@ export default defineSchema({
|
||||
leaseOwner: v.optional(v.string()),
|
||||
status: v.union(
|
||||
v.literal("queued"),
|
||||
v.literal("processing"),
|
||||
v.literal("dispatching"),
|
||||
v.literal("running"),
|
||||
v.literal("completed"),
|
||||
v.literal("failed")
|
||||
v.literal("failed"),
|
||||
v.literal("aborted")
|
||||
),
|
||||
submissionId: v.optional(v.string()),
|
||||
})
|
||||
@@ -121,7 +123,8 @@ export default defineSchema({
|
||||
"conversationId",
|
||||
"clientRequestId",
|
||||
])
|
||||
.index("by_status_and_leaseExpiresAt", ["status", "leaseExpiresAt"]),
|
||||
.index("by_status_and_leaseExpiresAt", ["status", "leaseExpiresAt"])
|
||||
.index("by_submissionId", ["submissionId"]),
|
||||
conversationMessages: defineTable({
|
||||
content: v.string(),
|
||||
conversationId: v.id("conversations"),
|
||||
|
||||
Reference in New Issue
Block a user