MCPcopy Create free account
hub / github.com/compozy/agh / requiredNativeString

Function requiredNativeString

internal/daemon/native_tools.go:4423–4429  ·  view source on GitHub ↗
(id toolspkg.ToolID, field string, value string)

Source from the content-addressed store, hash-verified

4421}
4422
4423func requiredNativeString(id toolspkg.ToolID, field string, value string) (string, error) {
4424 trimmed := strings.TrimSpace(value)
4425 if trimmed == "" {
4426 return "", nativeRequiredInputError(id, field)
4427 }
4428 return trimmed, nil
4429}
4430
4431func nativeRequiredInputError(id toolspkg.ToolID, field string) error {
4432 return toolspkg.NewToolError(

Calls 1

nativeRequiredInputErrorFunction · 0.85

Tested by

no test coverage detected