config¶
config ¶
Alkiviades backend configuration.
load_prompt_template ¶
Load the raw system prompt template from prompt.txt.
The template contains {ethical}, {alignment}, and {social} placeholders that are filled in by build_system_prompt().
Returns:
| Type | Description |
|---|---|
str
|
Raw prompt template string with axis placeholders. |
build_system_prompt ¶
Build the full system prompt with axis values substituted in.
Loads the prompt template and replaces {ethical_description}, {alignment_description}, and {social_description} placeholders with dynamically generated description blocks that change with axis values. Appends the TOOL_HINT at the end.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
axes
|
dict | None
|
Optional axis overrides. If None, uses the module-level AXES defaults. Expected keys: "ethical", "alignment", "social". |
None
|
Returns:
| Type | Description |
|---|---|
str
|
Complete system prompt string ready to send to the LLM. |
load_system_prompt ¶
Load the system prompt with default axes.
Convenience wrapper around build_system_prompt() using the module-level AXES defaults.
Returns:
| Type | Description |
|---|---|
str
|
Complete system prompt string with default axis values. |