v1

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Artifact

type Artifact struct {
	Path     string `yaml:"path" json:"path"`
	Required bool   `yaml:"required" json:"required"`
}

type Artifacts

type Artifacts []string

Artifacts is a slice type that can unmarshal from both string arrays and object arrays

func (Artifacts) MarshalJSON

func (a Artifacts) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler for Artifacts

func (*Artifacts) UnmarshalJSON

func (a *Artifacts) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler for Artifacts It accepts both string arrays and object arrays (for backward compatibility)

type Constraints

type Constraints struct {
	Timeout  string `yaml:"timeout,omitempty" json:"timeout,omitempty"`
	MaxSteps int    `yaml:"max_steps,omitempty" json:"max_steps,omitempty"`
}

type Context

type Context struct {
	Workspace string            `yaml:"workspace" json:"workspace"`
	Files     []string          `yaml:"files,omitempty" json:"files,omitempty"`
	Env       map[string]string `yaml:"env,omitempty" json:"env,omitempty"`
}

type Duration

type Duration string

Duration is a string type that can also unmarshal from a number (for backward compatibility)

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshaler for Duration

func (Duration) String

func (d Duration) String() string

String returns the string representation of the duration

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(data []byte) error

UnmarshalJSON implements json.Unmarshaler for Duration It accepts both string ("1.5s") and number (1.5) formats

type Goal

type Goal struct {
	Description string `yaml:"description" json:"description"`
	IssueID     string `yaml:"issue_id,omitempty" json:"issue_id,omitempty"`
}

type HolonManifest

type HolonManifest struct {
	Status    string                 `json:"status"`
	Outcome   string                 `json:"outcome"` // success, failure, needs_human
	Duration  Duration               `json:"duration"`
	Artifacts Artifacts              `json:"artifacts"`
	Metadata  map[string]interface{} `json:"metadata,omitempty"`
}

HolonManifest is generated by the agent at the end of execution.

type HolonSpec

type HolonSpec struct {
	Version     string      `yaml:"version" json:"version"`
	Kind        string      `yaml:"kind" json:"kind"`
	Metadata    Metadata    `yaml:"metadata" json:"metadata"`
	Context     Context     `yaml:"context" json:"context"`
	Goal        Goal        `yaml:"goal" json:"goal"`
	Output      Output      `yaml:"output" json:"output"`
	Constraints Constraints `yaml:"constraints" json:"constraints"`
}

HolonSpec defines the standardized task execution unit.

type ManifestArtifact

type ManifestArtifact struct {
	Name string `json:"name"`
	Path string `json:"path"`
}

ManifestArtifact represents a single artifact entry in a manifest (generated by agent)

type Metadata

type Metadata struct {
	Name string `yaml:"name" json:"name"`
	ID   string `yaml:"id,omitempty" json:"id,omitempty"`
}

type Output

type Output struct {
	Artifacts []Artifact `yaml:"artifacts" json:"artifacts"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL