Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Fix indent in FunctionCallingParser.error_message

Kilian Lieret467e6a3f1645
diff --git a/sweagent/tools/parsing.py b/sweagent/tools/parsing.py
index 2fbe6e4d..4527ab04 100644
--- a/sweagent/tools/parsing.py
+++ b/sweagent/tools/parsing.py
@@ -242,7 +242,8 @@ class Identity(AbstractParseFunction, BaseModel):
class FunctionCallingParser(AbstractParseFunction, BaseModel):
"""Expects the model response to be a LiteLLM tool call."""
- error_message: str = dedent("""{% if error_code == "missing" %}
+ error_message: str = dedent("""\
+ {% if error_code == "missing" %}
Your last output did not use any tool calls!
Please make sure your output includes exactly _ONE_ function call!
You must invoke the function directly using the function call format.