feat(agent): 云端 Agent - 增加上下文预算、任务事实与终态恢复保障
This commit is contained in:
1 parent
3bf21d79af
commit
b52bc9d5f2
61 files changed
+3512
-309
No files matched your search
@@ -0,0 +1,13 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
// CloudAgentResourceLease pins immutable inputs while a prepared action waits
|
||||
// for approval. Submitted tasks subsequently own their resource references.
|
||||
type CloudAgentResourceLease struct {
|
||||
UserID string `gorm:"primaryKey;size:36"`
|
||||
RunID string `gorm:"index;size:80"`
|
||||
OwnerID string `gorm:"primaryKey;size:160"`
|
||||
ResourceID string `gorm:"primaryKey;size:36;index"`
|
||||
ExpiresAt time.Time `gorm:"index"`
|
||||
}
|
||||
Reference in new issue
Block a user