feat: add phase 3 readonly models
This commit is contained in:
40
internal/runtime/model.go
Normal file
40
internal/runtime/model.go
Normal file
@@ -0,0 +1,40 @@
|
||||
package runtime
|
||||
|
||||
type Snapshot struct {
|
||||
Threads []Thread `json:"threads"`
|
||||
SpawnEdges []SpawnEdge `json:"spawnEdges"`
|
||||
Goals []Goal `json:"goals"`
|
||||
Source SourceEvidence `json:"source"`
|
||||
}
|
||||
|
||||
type Thread struct {
|
||||
ID string `json:"id"`
|
||||
Role string `json:"role"`
|
||||
Status string `json:"status"`
|
||||
CreatedAt string `json:"createdAt"`
|
||||
UpdatedAt string `json:"updatedAt"`
|
||||
Source SourceEvidence `json:"source"`
|
||||
}
|
||||
|
||||
type SpawnEdge struct {
|
||||
FromThreadID string `json:"fromThreadId"`
|
||||
ToThreadID string `json:"toThreadId"`
|
||||
Reason string `json:"reason"`
|
||||
CreatedAt string `json:"createdAt"`
|
||||
Source SourceEvidence `json:"source"`
|
||||
}
|
||||
|
||||
type Goal struct {
|
||||
ThreadID string `json:"threadId"`
|
||||
Goal string `json:"goal"`
|
||||
Status string `json:"status"`
|
||||
UpdatedAt string `json:"updatedAt"`
|
||||
Source SourceEvidence `json:"source"`
|
||||
}
|
||||
|
||||
type SourceEvidence struct {
|
||||
Kind string `json:"kind"`
|
||||
Path string `json:"path,omitempty"`
|
||||
Confidence string `json:"confidence"`
|
||||
Message string `json:"message,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user