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]

Critical fix: Avoid coercing fcall arg into string (#1183)

Kilian Lieret368d5d7ca8e4
diff --git a/sweagent/tools/parsing.py b/sweagent/tools/parsing.py
index 8db70dd9..5d1a5b5a 100644
--- a/sweagent/tools/parsing.py
+++ b/sweagent/tools/parsing.py
@@ -426,7 +426,7 @@ class FunctionCallingParser(AbstractParseFunction, BaseModel):
# See https://github.com/SWE-agent/SWE-agent/issues/1159
if value is None:
return ""
- return str(value)
+ return value
formatted_args = {
arg.name: Template(arg.argument_format).render(value=get_quoted_arg(values[arg.name]))