Documentation
¶
Index ¶
- func BoolArg(args map[string]any, key string, fallback bool) bool
- func BoundedInt(value, fallback, minimum, maximum int) int
- func BoundedMilliseconds(value, fallback, maximum int) time.Duration
- func IntArg(args map[string]any, key string, fallback int) int
- func MapArg(args map[string]any, key string) map[string]any
- func ReadBoundedBody(reader io.Reader, maxBytes int64) ([]byte, error)
- func RedactSecrets(value string, extraPatterns []string) string
- func Remarshal(input, output any) error
- func RunBoundedCombinedOutput(cmd *exec.Cmd, limit int) ([]byte, int64, bool, error)
- func StringArg(args map[string]any, key, fallback string) string
- func StringSliceArg(args map[string]any, key string) []string
- type BoundedOutput
- type Result
- type ToolError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoundedInt ¶
func BoundedMilliseconds ¶
func RedactSecrets ¶
Types ¶
type BoundedOutput ¶
type BoundedOutput struct {
// contains filtered or unexported fields
}
func NewBoundedOutput ¶
func NewBoundedOutput(limit int) *BoundedOutput
type ToolError ¶
type ToolError struct {
Code string `json:"code"`
Message string `json:"message"`
Category string `json:"category"`
Retryable bool `json:"retryable"`
Details map[string]any `json:"details,omitempty"`
// contains filtered or unexported fields
}
func NewErrorCause ¶
func NewErrorDetails ¶
Click to show internal directories.
Click to hide internal directories.