System Prompts¶
load_sys_prompt ¶
Load a system prompt by searching upwards for a 'system_prompts' folder,
starting from the caller's file location (preferred) or from start/cwd.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filename
|
str
|
Name of the .txt file inside system_prompts. |
required |
start
|
str | Path | None
|
Optional explicit starting path (file or directory). If not provided, we try the caller's file directory; if unavailable, we use cwd. |
None
|
Returns:
| Type | Description |
|---|---|
str
|
The content of the system prompt file. |
Raises:
| Type | Description |
|---|---|
RuntimeError
|
If the folder or file cannot be found/read. |