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

Function stringFromContext

agent/agent_tool.go:253–258  ·  view source on GitHub ↗
(ctx coretools.ExecutionContext, key, fallback string)

Source from the content-addressed store, hash-verified

251}
252
253func stringFromContext(ctx coretools.ExecutionContext, key, fallback string) string {
254 if s, ok := ctx[key].(string); ok && s != "" {
255 return s
256 }
257 return fallback
258}
259
260func copyAgentExtraContext(execCtx coretools.ExecutionContext) coretools.ExecutionContext {
261 out := coretools.ExecutionContext{}

Callers 3

ExecuteMethod · 0.85
runtimeAndScopeFunction · 0.85
createSessionStateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected