Skip to content

Commit f7ef2ba

Browse files
author
rbotnari
committed
fix formatting
1 parent 04368b2 commit f7ef2ba

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

‎rlm/core/rlm.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,9 @@ def _spawn_completion_context(self, prompt: str | dict[str, Any]):
265265
if self.tool_code and self.tool_code.strip():
266266
existing_setup_code = env_kwargs.get("setup_code")
267267
if existing_setup_code and existing_setup_code.strip():
268-
env_kwargs["setup_code"] = existing_setup_code.rstrip() + "\n\n" + self.tool_code.lstrip()
268+
env_kwargs["setup_code"] = (
269+
existing_setup_code.rstrip() + "\n\n" + self.tool_code.lstrip()
270+
)
269271
else:
270272
env_kwargs["setup_code"] = self.tool_code
271273

‎rlm/utils/prompts.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def append_prompt_sections(base_prompt: str, extra_sections: str | list[str] | N
1616
# Keep the existing prompt verbatim; just append extra sections.
1717
return base_prompt.rstrip() + "\n\n" + "\n\n".join(cleaned_sections) + "\n"
1818

19+
1920
# System prompt for the REPL environment with explicit final answer checking
2021
RLM_SYSTEM_PROMPT = textwrap.dedent(
2122
"""You are tasked with answering a query with associated context. You can access, transform, and analyze this context interactively in a REPL environment that can recursively query sub-LLMs, which you are strongly encouraged to use as much as possible. You will be queried iteratively until you provide a final answer.

0 commit comments

Comments
 (0)