MCPcopy Create free account
hub / github.com/53AI/53AIHub / parseBoolValue

Function parseBoolValue

api/service/tools/executor.go:1346–1355  ·  view source on GitHub ↗
(value interface{})

Source from the content-addressed store, hash-verified

1344}
1345
1346func parseBoolValue(value interface{}) bool {
1347 switch v := value.(type) {
1348 case bool:
1349 return v
1350 case string:
1351 return strings.EqualFold(strings.TrimSpace(v), "true")
1352 default:
1353 return false
1354 }
1355}
1356
1357func formatSandboxClientWrittenFile(ctx context.Context, sessionID string, cwd string, path string) error {
1358 if strings.TrimSpace(sessionID) == "" {

Calls

no outgoing calls

Tested by

no test coverage detected