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)
| 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. |
| 360 | func (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 |
| 369 | func generateCacheSteps(builder *strings.Builder, data *WorkflowData, verbose bool) { |