loader
_loader
¶
Utility for loading markdown prompt files with disk-read caching.
Functions:
| Name | Description |
|---|---|
load_markdown |
Load a markdown prompt file, optionally formatting placeholders. |
Functions¶
load_markdown
¶
Load a markdown prompt file, optionally formatting placeholders.
File contents are cached after the first read — the files never change at runtime, so this avoids repeated disk I/O on every prompt invocation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
str
|
Filename (with .md extension) inside the |
required |
|
str
|
Values to substitute into |
{}
|
Returns:
| Type | Description |
|---|---|
str
|
The formatted markdown string. |