Versions in this module Expand all Collapse all v1 v1.1.0 Sep 29, 2026 v1.0.4 Sep 18, 2026 v1.0.3 Sep 18, 2026 v1.0.2 Sep 17, 2026 Changes in this version + const ArtifactKindOutput + const CapArtifactInspect + const CapJobsStatus + const CapOutputReview + const CapToolsDescribe + const CapToolsEstimate + const CapToolsList + const CapToolsRun + const ContractVersion + const DefaultMaxOutputBytes + const ManifestSchemaID + const ModuleID + const ModuleName + const OpDescribe + const OpInvoke + const Protocol + const ProviderVaries + const SeedManifestFile + const SeedSchemaID + func AwaitJobs(timeout time.Duration) (finished bool) + func HasRunningJobs() bool + func LoadSeed(ref *SeedRef) (*Seed, *SeedResolution, error) + func RequireBinary(bins map[string]string, name string) (string, error) + func ValidDigest(s string) bool + func ValidateBinaries(bins map[string]string) error + func ValidateEnvelopeAgainst(raw []byte, exp Expectation) error + func ValidateEnvelopeBytes(raw []byte) error + func ValidateEnvelopeSized(raw []byte, maxBytes int) error + type Artifact struct + Bytes int64 + Digest string + ID string + Kind string + MediaType string + Path string + Presentation string + Root string + Title string + type ArtifactManifest struct + Artifacts []Artifact + Capability string + Execution Execution + Module string + RequestID string + Review ReviewState + Schema string + Source *SeedResolution + func NewManifest(capability string, env Envelope, source *SeedResolution) ArtifactManifest + type Capability struct + ArtifactSchemas []string + Effects Effects + ID string + LongRunning bool + PollCapability string + Projects []string + RequestSchema string + ResultSchema string + Skills []string + Summary string + Title string + type Consent struct + ApprovedBy string + Note string + PaidGenerationApproved bool + type Descriptor struct + AgentOverlays []Overlay + ArtifactKinds map[string]toolbox.V2ArtifactKind + ArtifactSchemas map[string]any + Capabilities []Capability + ContractVersion string + Module string + Name string + Operations []toolbox.V2Operation + Permissions Permissions + ProtocolVersions []string + RequestSchemas map[string]any + Requirements []Requirement + ResultSchemas map[string]any + Skills []Skill + Version string + type Effects struct + CostKnown bool + Deterministic bool + ExternalWrites bool + Local bool + MayCharge bool + Network bool + Provider string + type Envelope struct + Error *Error + Execution Execution + Module string + OK bool + Operation string + Protocol string + RequestID string + Result any + Warnings []string + func Describe(version string) Envelope + func EnforceOutputBudget(env Envelope, maxBytes int) Envelope + func Estimate(capability string, raw []byte) Envelope + func InputError(op, path string, err error) Envelope + func Invoke(capability string, raw []byte) Envelope + func JobStatus(raw []byte) Envelope + func Usage(message string) Envelope + type Error struct + Code string + Details map[string]any + Message string + Retryable bool + type Execution struct + ActualCost *float64 + Artifacts []Artifact + ContractVersion string + EstimatedCost *float64 + ExternalWrites bool + Local bool + Network bool + Provider string + type Expectation struct + CostKnown bool + CostKnownSet bool + RequestID string + type Grants struct + Credentials []string + Network []string + PaidProviders []string + Publish bool + Subprocess []string + type Job struct + Capability string + Detail string + Error *Error + Execution *Execution + FinishedAt *time.Time + JobID string + Percent *float64 + Result any + StartedAt time.Time + State JobState + Tool string + type JobState string + const JobFailed + const JobRunning + const JobSucceeded + type JobStatusRequest struct + Capability string + DeadlineMS int + JobID string + MaxOutputBytes int + Protocol string + RequestID string + type Overlay struct + Digest string + ID string + Path string + Title string + Tokens int + type Permissions struct + Credentials []string + FilesystemRead []string + FilesystemWrite []string + Network []string + PaidProviders []string + Publish bool + Subprocess []string + type Request struct + Async bool + Binaries map[string]string + Capability string + Consent *Consent + ContractVersion string + DeadlineMS int + Grants *Grants + Input json.RawMessage + MaxOutputBytes int + Protocol string + RequestID string + Roots map[string]Root + Seed *SeedRef + Tool string + type Requirement struct + For string + Kind string + Name string + Required bool + type ReviewState struct + HumanApproved bool + Note string + TechnicalQA string + type Root struct + Mode string + Path string + type Seed struct + Attachments []string + EvidenceDigest string + Goal string + KeyPoints []string + Schema string + SuggestedOutputTypes []string + Summary string + Title string + func (s *Seed) OutputTypes() (accepted []string, warnings []string) + type SeedAttachment struct + Bytes int + Digest string + Missing bool + Path string + type SeedRef struct + Digest string + Path string + Schema string + type SeedResolution struct + Attachments []SeedAttachment + DigestActual string + DigestExpected string + EvidenceDigest string + Path string + Schema string + Verified bool + type Skill struct + Digest string + ID string + Path string + Summary string + Title string + Tokens int