prompts
prompts
¶
Prompt template loading utilities.
PromptTemplate
¶
Reusable prompt template with validation.
Source code in autochecklist/prompts/__init__.py
load_template(method, template_name, custom_path=None)
¶
Load a prompt template.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
method
|
str
|
Method name (e.g., "tick", "rlcf") |
required |
template_name
|
str
|
Template file name without extension |
required |
custom_path
|
Optional[str]
|
Optional path to override default template |
None
|
Returns:
| Type | Description |
|---|---|
str
|
Template string with {placeholders} |
Source code in autochecklist/prompts/__init__.py
load_format(format_name)
¶
Load a format prompt file from the formats/ directory.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
format_name
|
str
|
Format file name without extension (e.g., "checklist") |
required |
Returns:
| Type | Description |
|---|---|
str
|
Format instruction text to append to prompts |