64 lines
1.7 KiB
Go
64 lines
1.7 KiB
Go
package capability
|
|
|
|
import (
|
|
"git.cin.su/m/Assistant/contracts/authority"
|
|
"git.cin.su/m/Assistant/contracts/identity"
|
|
)
|
|
|
|
// TaskEvaluationCase carries one bounded prompt selected by the evaluator.
|
|
// The prompt is an input artifact, not a model-produced fact.
|
|
type TaskEvaluationCase struct {
|
|
CaseID string
|
|
Prompt string
|
|
EvidenceArtifactRef string
|
|
Verification TaskCaseVerification
|
|
}
|
|
|
|
type TaskCaseResponse struct {
|
|
CaseID string
|
|
ResponseText string
|
|
LatencyMicros int64
|
|
EvidenceArtifactRef string
|
|
}
|
|
|
|
type TaskCaseVerificationRequest struct {
|
|
CaseID string
|
|
ResponseText string
|
|
LatencyMicros int64
|
|
EvidenceArtifactRef string
|
|
Verification TaskCaseVerification
|
|
}
|
|
|
|
type TaskCaseVerificationResponse struct {
|
|
CaseID string
|
|
Result EvaluationResult
|
|
QualityScoreMillis int64
|
|
LatencyMicros int64
|
|
CriticalFailure bool
|
|
EvidenceArtifactRef string
|
|
VerificationEvidenceRef string
|
|
VerifierIdentity string
|
|
}
|
|
|
|
type TaskEvaluationExecutionRequest struct {
|
|
Profile TaskEvaluationProfile
|
|
CapabilityID CapabilityID
|
|
BindingID CapabilityBindingID
|
|
BindingRevision int64
|
|
ActorID identity.ActorID
|
|
PrincipalID identity.PrincipalID
|
|
ScopeID authority.ScopeID
|
|
Cases []TaskEvaluationCase
|
|
MaxOutputBytes int64
|
|
EgressAcknowledged bool
|
|
}
|
|
|
|
type TaskEvaluationExecutionResponse struct {
|
|
ProfileID TaskEvaluationProfileID
|
|
BindingID CapabilityBindingID
|
|
BindingRevision int64
|
|
Observations []TaskCaseObservation
|
|
Responses []TaskCaseResponse
|
|
ObservedAtUnixMillis int64
|
|
}
|