Documentation
¶
Index ¶
- Constants
- func BuildCatalog(tools []ToolDesc) (map[string]ToolDesc, error)
- func CallKey(ctx context.Context) string
- func CallLine(ctx context.Context) (number int, code string)
- func Decoded(v starlark.Value) starlark.Value
- func Format(source string) (string, error)
- func FreeNames(source string) ([]string, error)
- func HostResult(tool string, value starlark.Value, err error) starlark.Value
- func IsFailure(v starlark.Value) bool
- func ResultAttr(v starlark.Value, failure *Error, name string) (starlark.Value, bool)
- func ResultAttrNames(extra ...string) []string
- func Run(ctx context.Context, source string, tools []ToolDesc, decide DecideFunc, ...) (starlark.Value, error)
- func SanitizeTool(mcpToolName string) string
- func StarlarkName(server, mcpToolName string) string
- type CallDetails
- type CallFunc
- type DecideFunc
- type Error
- func (e *Error) Attr(name string) (starlark.Value, error)
- func (e *Error) AttrNames() []string
- func (e *Error) CallInternal(*starlark.Thread, starlark.Tuple, []starlark.Tuple) (starlark.Value, error)
- func (e *Error) CompareSameType(op syntax.Token, y starlark.Value, _ int) (bool, error)
- func (e *Error) Freeze()
- func (e *Error) Hash() (uint32, error)
- func (e *Error) MarshalJSON() ([]byte, error)
- func (e *Error) Message() string
- func (e *Error) Name() string
- func (e *Error) Ok() bool
- func (e *Error) String() string
- func (e *Error) Tool() string
- func (e *Error) Truth() starlark.Bool
- func (e *Error) Type() string
- type File
- func (f *File) Attr(name string) (starlark.Value, error)
- func (f *File) AttrNames() []string
- func (f *File) CompareSameType(op syntax.Token, y starlark.Value, _ int) (bool, error)
- func (f *File) Content() string
- func (f *File) Dimensions() (width, height int, ok bool)
- func (f *File) Freeze()
- func (f *File) Hash() (uint32, error)
- func (f *File) MarshalJSON() ([]byte, error)
- func (f *File) Mime() string
- func (f *File) Name() string
- func (f *File) Ok() bool
- func (f *File) SHA256() string
- func (f *File) Size() int
- func (f *File) Source() string
- func (f *File) String() string
- func (f *File) Truth() starlark.Bool
- func (f *File) Type() string
- type FileSpec
- type HostTool
- type Match
- func (m *Match) Attr(name string) (starlark.Value, error)
- func (m *Match) AttrNames() []string
- func (m *Match) Freeze()
- func (m *Match) Hash() (uint32, error)
- func (m *Match) MarshalJSON() ([]byte, error)
- func (m *Match) Ok() bool
- func (m *Match) String() string
- func (m *Match) Truth() starlark.Bool
- func (m *Match) Type() string
- type NoDetails
- type Result
- type TextValue
- func (t *TextValue) Attr(name string) (starlark.Value, error)
- func (t *TextValue) AttrNames() []string
- func (t *TextValue) Binary(op syntax.Token, y starlark.Value, side starlark.Side) (starlark.Value, error)
- func (t *TextValue) CompareSameType(op syntax.Token, y starlark.Value, depth int) (bool, error)
- func (t *TextValue) Freeze()
- func (t *TextValue) Hash() (uint32, error)
- func (t *TextValue) Index(i int) starlark.Value
- func (t *TextValue) Len() int
- func (t *TextValue) MarshalJSON() ([]byte, error)
- func (t *TextValue) Ok() bool
- func (t *TextValue) Slice(start, end, step int) starlark.Value
- func (t *TextValue) String() string
- func (t *TextValue) Truth() starlark.Bool
- func (t *TextValue) Type() string
- type ToolDesc
Constants ¶
View Source
const ( DefaultConcurrency = 16 MaxConcurrency = 64 )
Variables ¶
This section is empty.
Functions ¶
func HostResult ¶ added in v0.2.59
func ResultAttr ¶ added in v0.2.59
func ResultAttrNames ¶ added in v0.2.59
func SanitizeTool ¶
func StarlarkName ¶
Types ¶
type CallDetails ¶ added in v0.2.59
type CallDetails interface {
Details(args map[string]any) starlark.StringDict
}
type DecideFunc ¶
type Error ¶ added in v0.2.59
type Error struct {
// contains filtered or unexported fields
}
func NewFailure ¶ added in v0.2.59
func NewFailure(tool, message string, details starlark.StringDict) *Error
func (*Error) CallInternal ¶ added in v0.2.59
func (*Error) CompareSameType ¶ added in v0.2.59
func (*Error) MarshalJSON ¶ added in v0.2.59
type File ¶ added in v0.2.59
type File struct {
// contains filtered or unexported fields
}
func (*File) CompareSameType ¶ added in v0.2.59
func (*File) Dimensions ¶ added in v0.2.59
func (*File) MarshalJSON ¶ added in v0.2.59
type Match ¶ added in v0.2.59
type Match struct {
// contains filtered or unexported fields
}
func (*Match) MarshalJSON ¶ added in v0.2.59
type TextValue ¶ added in v0.2.59
type TextValue struct {
// contains filtered or unexported fields
}
func NewText ¶ added in v0.2.59
func NewText(kind, content string, attrs starlark.StringDict, data json.RawMessage) *TextValue
func (*TextValue) CompareSameType ¶ added in v0.2.59
func (*TextValue) MarshalJSON ¶ added in v0.2.59
Click to show internal directories.
Click to hide internal directories.