diff --git a/gptme/tools/base.py b/gptme/tools/base.py index 19218c89..39bba6d3 100644 --- a/gptme/tools/base.py +++ b/gptme/tools/base.py @@ -121,7 +121,8 @@ def to_output(self) -> str: return self.to_xml() def to_markdown(self) -> str: - return f"```{self.tool} {"".join(self.args)}\n{self.content}\n```" + args = " ".join(self.args) + return f"```{self.tool} {args}\n{self.content}\n```" def to_xml(self) -> str: args = " ".join(self.args)