MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / getString

Function getString

api/client.go:1306–1315  ·  view source on GitHub ↗
(m map[string]any, key string)

Source from the content-addressed store, hash-verified

1304 "tool_use_id": toolUseID,
1305 "content": extractToolResultText(block),
1306 "is_error": getBool(block, "is_error"),
1307 }))
1308
1309 case "text":
1310 text := getString(block, "text")
1311 if isSystemHintText(text) {
1312 textParts = append(textParts, text)
1313 continue
1314 }
1315 return nil, false
1316
1317 default:
1318 return nil, false

Callers 12

AnthropicToolsToOpenAIFunction · 0.85
CompleteMethod · 0.85
StreamChatMethod · 0.85
streamAnthropicMethod · 0.85
CompleteMethod · 0.85
toolMessageFromResultFunction · 0.85
splitAnthropicBlocksFunction · 0.85
consumeToolResultCarrierFunction · 0.85
extractToolResultTextFunction · 0.85
getStringDefaultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected