Documentation
¶
Index ¶
Constants ¶
View Source
const ( KindText = "text" KindFile = "file" KindTemplate = "template" KindTemplateFile = "template_file" )
Variables ¶
View Source
var ( ErrInvalidSource = errors.New("invalid instruction source") ErrUnknownWorkspace = errors.New("unknown workspace") ErrSourceBounds = errors.New("instruction source exceeds bounds") ErrInvalidTemplate = errors.New("invalid instruction template") ErrRenderBounds = errors.New("rendered instruction exceeds bounds") )
Functions ¶
func NewSkillSource ¶
func NewSkillSource(skills []FrozenSkill, selected []string) adkskill.Source
Types ¶
type Data ¶
type Data struct {
Workflow WorkflowData `json:"Workflow"`
Step StepData `json:"Step"`
Predecessors map[string]any `json:"Predecessors"`
Runtime RuntimeData `json:"Runtime"`
}
type FileSource ¶
type Frozen ¶
type Frozen struct {
Kind string `json:"kind"`
Workspace string `json:"workspace,omitempty"`
Path string `json:"path,omitempty"`
Source string `json:"source"`
Digest string `json:"digest"`
MaxSourceBytes int `json:"max_source_bytes"`
MaxOutputBytes int `json:"max_output_bytes"`
Dependencies []string `json:"dependencies,omitempty"`
DirectValues []string `json:"direct_values,omitempty"`
Rendering string `json:"render"`
}
type FrozenSkill ¶
type FrozenSkill struct {
Name string `json:"name"`
Workspace string `json:"workspace"`
Path string `json:"path"`
Digest string `json:"digest"`
Files []SkillFile `json:"files"`
}
func FreezeSkills ¶
func FreezeSkills(requests map[string]SkillRequest, workspaces map[string]string) ([]FrozenSkill, error)
type RuntimeData ¶
type SkillRequest ¶
type WorkflowData ¶
Click to show internal directories.
Click to hide internal directories.