INNER CODE UNIT · Go

processRootAggregation

xataio/xata · gen/aiconfigs/main.go:249

func processRootAggregation(aiFiles []AIMarkdownFile, toolConfig ToolConfig) error {
	if toolConfig.RootOutputFile == "" {
		log.Printf("no root output file configured for tool: %s", toolConfig.Name)
		return nil
	}

	rootContent := generateRootAggregate(aiFiles, toolConfig)
	if err := writeFile(toolConfig.RootOutputFile, rootContent); err != nil {
		return err
	}
	log.Printf("Generated root aggregate: %s", toolConfig.RootOutputFile)
	return nil
}

func generateRootAggregate(aiFiles []AIMarkdownFile, toolConfig ToolConfig) string {
	var rootFile *AIMarkdownFile
	var otherFiles []AIMarkdownFile
	for _, file := range aiFiles {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…