Versions in this module Expand all Collapse all v1 v1.4.0 Oct 20, 2026 Changes in this version + type Budget struct + CostMicroUSD money.MicroUSD + Tokens int64 + ToolCalls int64 + WallSeconds int64 + func (b Budget) Zero() bool + type Image struct + Digest string + Ref string + func (i Image) Canonical() string + func (i Image) Equal(other Image) bool + func (i Image) Pinned() bool + func (i Image) Validate() error + type ModelCallScript struct + IdempotencyKey string + InputTokens int64 + ModelRef string + OutputTokens int64 + type Placement struct + ArtifactRegion string + AvoidFailureDomains []string + CPU int64 + DataResidency string + LLMConcurrency int + Memory int64 + PreferredClass string + Region string + RuntimeClasses []string + WorkspaceBytes int64 + type RetryPolicy struct + MaxAttempts int + func (p RetryPolicy) EffectiveMaxAttempts() int + type Runtime struct + Command []string + ComponentPath string + func (r Runtime) ValidateCommand() error + type Spec struct + Budget Budget + Deadline *time.Time + Image *Image + ModelCalls []ModelCallScript + Placement Placement + Priority int + RetryPolicy RetryPolicy + Runtime *Runtime + ToolCalls []ToolCall + func Decode(raw json.RawMessage) (Spec, error) + type ToolCall struct + Action string + Args json.RawMessage + IdempotencyKey string + Resource string + ToolName string + ToolVersion string