MCPcopy Create free account
hub / github.com/github/gh-aw / extractCacheMemoryConfigFromMap

Method extractCacheMemoryConfigFromMap

pkg/workflow/cache.go:360–366  ·  view source on GitHub ↗

extractCacheMemoryConfigFromMap is a backward compatibility wrapper for extractCacheMemoryConfig extractCacheMemoryConfigFromMap is a backward compatibility wrapper for extractCacheMemoryConfig that accepts map[string]any instead of *ToolsConfig. This allows gradual migration of calling code.

(tools map[string]any)

Source from the content-addressed store, hash-verified

358// extractCacheMemoryConfigFromMap is a backward compatibility wrapper for extractCacheMemoryConfig
359// that accepts map[string]any instead of *ToolsConfig. This allows gradual migration of calling code.
360func (c *Compiler) extractCacheMemoryConfigFromMap(tools map[string]any) (*CacheMemoryConfig, error) {
361 toolsConfig, err := ParseToolsConfig(tools)
362 if err != nil {
363 return nil, err
364 }
365 return c.extractCacheMemoryConfig(toolsConfig)
366}
367
368// generateCacheSteps generates cache steps for the workflow based on cache configuration
369func generateCacheSteps(builder *strings.Builder, data *WorkflowData, verbose bool) {

Calls 2

ParseToolsConfigFunction · 0.85