Metadata-Version: 2.1
Name: prompt_collapse
Version: 0.1.2
Summary: A prompt generation system that manages relationships between prompt components to maintain logical consistency
Home-page: https://github.com/kraglik/prompt_collapse
License: MIT
Keywords: prompt,generation,ai,stable-diffusion,comfyui
Author: kraglik
Author-email: kraglik.i.d@gmail.com
Requires-Python: >=3.10
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: pyyaml (>=6.0.2)
Project-URL: Documentation, https://github.com/kraglik/prompt_collapse
Project-URL: Repository, https://github.com/kraglik/prompt_collapse
Description-Content-Type: text/markdown

# PromptCollapse

A prompt generation system that manages relationships between prompt components to maintain logical consistency. Integrates with ComfyUI as a custom node.

## Overview

PromptCollapse builds prompts by selecting components based on their inferred relationships.
Each component has its own set of parameters that are only valid within the component execution context.
Component might be purely abstract, meaning that it won't produce any prompt fragments at all, but would coordinate other components instead.

## Usage

A minimalistic example can be found in "components/sky.yaml".

## ComfyUI Integration

The system provides a custom node with the following inputs:

- **Prompt**: Initial component tags (comma-separated)
- **Components Directory Path**: Component library directory
- **Reload on Generation**: Toggle component reloading
- **Seed**: Random seed for component selection

