Documentation
¶
Overview ¶
Package planner constructs immutable offline IntentPlans and resolves only branches that the IntentPlan authorized in advance.
Index ¶
- Constants
- func BuildIntent(request IntentRequest) (schema.IntentPlan, error)
- func DefaultTimes(now func() time.Time) (schema.InstanceID, schema.UTCTime, error)
- func Resolve(intent schema.IntentPlan, request ResolutionRequest) (schema.ResolvedRunPlan, error)
- type IntentRequest
- type ResolutionRequest
- type ScenarioCandidate
Constants ¶
View Source
const ( IntentSchema = "urn:agentapi-doctor:intent-plan:v1alpha1" ResolvedSchema = "urn:agentapi-doctor:resolved-run-plan:v1alpha1" )
Variables ¶
This section is empty.
Functions ¶
func BuildIntent ¶
func BuildIntent(request IntentRequest) (schema.IntentPlan, error)
func DefaultTimes ¶
func Resolve ¶
func Resolve(intent schema.IntentPlan, request ResolutionRequest) (schema.ResolvedRunPlan, error)
Types ¶
type IntentRequest ¶
type IntentRequest struct {
ID schema.InstanceID
CreatedAt schema.UTCTime
Producer schema.Producer
ConfigDigest schema.Digest
Target schema.TargetIntent
Selectors []schema.ArtifactSelector
SupportManifestDigest schema.Digest
Probe schema.ProbePolicy
Scenarios []ScenarioCandidate
Budget schema.BudgetPolicy
Evidence schema.EvidencePolicy
Safety schema.SafetyPolicy
Author string
ApprovalRequirements []string
}
type ResolutionRequest ¶
type ResolutionRequest struct {
ID schema.InstanceID
CreatedAt schema.UTCTime
Producer schema.Producer
Resolver schema.ArtifactPin
Observations []schema.CapabilityObservation
SupportLockDigest schema.Digest
Artifacts []schema.ArtifactPin
Target schema.TargetResolution
Scenarios []ScenarioCandidate
Runtime schema.RuntimePolicy
Finalizers []schema.FinalizerPlan
}
type ScenarioCandidate ¶
type ScenarioCandidate struct {
ID string
Capabilities []string
Driver schema.ArtifactPin
DependsOn []string
}
Click to show internal directories.
Click to hide internal directories.