feat(t208): close candidate decision feedback loop
This commit is contained in:
@@ -140,11 +140,112 @@ type ExecutionOutcome struct {
|
||||
ReceivedAfterExecutionExpiry bool
|
||||
}
|
||||
|
||||
type CandidateSearchRun struct {
|
||||
TaskID string
|
||||
ExecutionID string
|
||||
TaskContentSHA256 string
|
||||
ExecutionMode string
|
||||
SearchQuery string
|
||||
AppVersion *string
|
||||
AndroidVersion *string
|
||||
PDDVersion *string
|
||||
StartedAt time.Time
|
||||
ReceivedAt time.Time
|
||||
ObservationCount int
|
||||
CollectionComplete bool
|
||||
ReceivedAfterExecutionExpiry bool
|
||||
}
|
||||
|
||||
type CandidateObservation struct {
|
||||
TaskID string
|
||||
ExecutionID string
|
||||
Ordinal int
|
||||
Title string
|
||||
SKUText string
|
||||
PriceText string
|
||||
ProductURL string
|
||||
ImageURL string
|
||||
EvidenceAssetIDs []string
|
||||
CollectionStatus string
|
||||
ObservedAt time.Time
|
||||
}
|
||||
|
||||
type CandidateModelRun struct {
|
||||
ExecutionID string
|
||||
ProviderID string
|
||||
Model string
|
||||
PromptVersion string
|
||||
SchemaVersion int
|
||||
RecommendationThreshold float64
|
||||
RequestSHA256 string
|
||||
ResultSHA256 string
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
type CandidateEvaluationRecord struct {
|
||||
ExecutionID string
|
||||
CandidateOrdinal int
|
||||
Decision string
|
||||
Score float64
|
||||
Confidence float64
|
||||
MatchedJSON string
|
||||
MissingOrUncertainJSON string
|
||||
RejectionReasonsJSON string
|
||||
HardConstraintsJSON string
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
type CandidateRecommendationRecord struct {
|
||||
ExecutionID string
|
||||
CandidateOrdinal int
|
||||
Conclusion string
|
||||
PolicyVersion string
|
||||
ReasonsJSON string
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
type CandidateHumanReview struct {
|
||||
ID string
|
||||
TaskID string
|
||||
ExecutionID string
|
||||
TaskContentSHA256 string
|
||||
Version int
|
||||
ReasonSchemaVersion int
|
||||
Outcome string
|
||||
SelectedCandidateOrdinal *int
|
||||
PrimaryReasonCode string
|
||||
Note string
|
||||
SupersedesReviewID *string
|
||||
ActorUserID string
|
||||
ActorDeviceID *string
|
||||
CreatedAt time.Time
|
||||
ReceivedAfterExecutionExpiry bool
|
||||
Items []CandidateHumanReviewItem
|
||||
}
|
||||
|
||||
type CandidateHumanReviewItem struct {
|
||||
CandidateOrdinal int
|
||||
Label string
|
||||
PrimaryReasonCode string
|
||||
ReasonCodes []string
|
||||
Note string
|
||||
}
|
||||
|
||||
type CandidateDecisionDataset struct {
|
||||
SearchRun *CandidateSearchRun
|
||||
Observations []CandidateObservation
|
||||
ModelRun *CandidateModelRun
|
||||
Evaluations []CandidateEvaluationRecord
|
||||
Recommendation *CandidateRecommendationRecord
|
||||
HumanReviews []CandidateHumanReview
|
||||
}
|
||||
|
||||
type ExecutionReport struct {
|
||||
Events []ExecutionEvent
|
||||
EvidenceAssets []ExecutionEvidenceAsset
|
||||
CandidateBatch *ExecutionCandidateBatch
|
||||
Outcome *ExecutionOutcome
|
||||
Events []ExecutionEvent
|
||||
EvidenceAssets []ExecutionEvidenceAsset
|
||||
CandidateBatch *ExecutionCandidateBatch
|
||||
DecisionDataset *CandidateDecisionDataset
|
||||
Outcome *ExecutionOutcome
|
||||
}
|
||||
|
||||
type TaskDetail struct {
|
||||
|
||||
Reference in New Issue
Block a user