Versions in this module Expand all Collapse all v0 v0.2.2 Oct 6, 2026 Changes in this version + type InputField struct + Name string + Node int + type InputKind string + const InputBool + const InputFloat + const InputInt + const InputList + const InputMap + const InputOptional + const InputString + const InputStruct + type InputNode struct + Elem int + Fields []InputField + Float32 bool + IntMax int64 + IntMin int64 + Kind InputKind + type InputSchema struct + Nodes []InputNode + Root int + func (schema InputSchema) Bind(args starlark.Tuple, kwargs []starlark.Tuple, maxDepth int, maxNodes int) (map[string]any, error) + func (schema InputSchema) Clone() InputSchema + func (schema InputSchema) Validate() error type Plan + func (plan *Plan) InputSchema() InputSchema v0.2.1 Sep 11, 2026 v0.2.0 Sep 11, 2026 v0.1.0 Aug 26, 2026 Changes in this version + var ErrInvalidArguments = errors.New("invalid capability arguments") + var ErrInvalidPlan = errors.New("invalid binding plan") + var ErrUnsupportedValue = errors.New("unsupported value") + var ErrValueLimit = errors.New("converted value limit exceeded") + func BindShape(fields []FieldShape, args starlark.Tuple, kwargs []starlark.Tuple) (map[string]any, error) + func FromStarlark(value starlark.Value, maxDepth int, maxNodes int) (any, error) + func ToStarlark(value any, maxDepth int, maxNodes int) (starlark.Value, error) + func ValidIdentifier(name string) bool + func ValidateInputShape(fields []FieldShape) error + func ValidateValue(value any, maxDepth int, maxNodes int) error + type FieldShape struct + Name string + Required bool + Type string + type Plan struct + func Compile(inputType reflect.Type, outputType reflect.Type) (*Plan, error) + func CompileFor[Input, Output any]() (*Plan, error) + func (plan *Plan) BindValue(arguments map[string]any) (any, map[string]any, error) + func (plan *Plan) ConvertOutput(output any, maxDepth int, maxNodes int) (map[string]any, error) + func (plan *Plan) InputShape() []FieldShape + func (plan *Plan) InputType() reflect.Type + func (plan *Plan) OutputShape() []FieldShape + func (plan *Plan) OutputType() reflect.Type + func (plan *Plan) Signature(capabilityName string) string