Files
codex-agent-manager/internal/runtime/model.go

44 lines
1.2 KiB
Go

package runtime
type Snapshot struct {
Threads []Thread `json:"threads"`
SpawnEdges []SpawnEdge `json:"spawnEdges"`
Goals []Goal `json:"goals"`
Source SourceEvidence `json:"source"`
Sources SourceMap `json:"sources"`
}
type SourceMap map[string]SourceEvidence
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"`
}