runtimeartifact

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package runtimeartifact validates and activates reviewed declarative artifacts carried by an immutable RunManifest. It never registers tools or grants permissions; it can only organize capabilities already selected for the current request.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Selection

type Selection struct {
	Skills           []artifactv1.SkillArtifact
	Strategies       []artifactv1.StrategyArtifact
	UnavailableSkill map[string][]string
	Bindings         map[string]string
}

type Set

type Set struct {
	// contains filtered or unexported fields
}

func ParseContext

func ParseContext(values map[string]any) (*Set, error)

ParseContext consumes the reserved transport value so generic context prompt builders cannot expose the raw bundle as untrusted model input.

func (*Set) Bundle

func (s *Set) Bundle() artifactv1.Bundle

func (*Set) Instruction

func (s *Set) Instruction(selection Selection) string

func (*Set) Select

func (s *Set) Select(contextValues map[string]any, capabilityIDs []string) Selection

Select applies preconditions against runtime context and the already enabled capability set. Unknown preconditions fail closed.

Jump to

Keyboard shortcuts

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