Skip to content

Commit aef82f5

Browse files
authored
fix whitespace for conversational agent (#690)
1 parent 8baf6fb commit aef82f5

File tree

1 file changed

+1
-1
lines changed
  • langchain/agents/conversational

1 file changed

+1
-1
lines changed

langchain/agents/conversational/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _extract_tool_and_input(self, llm_output: str) -> Optional[Tuple[str, str]]:
7878
raise ValueError(f"Could not parse LLM output: `{llm_output}`")
7979
action = match.group(1)
8080
action_input = match.group(2)
81-
return action, action_input.strip(" ").strip('"')
81+
return action.strip(), action_input.strip(" ").strip('"')
8282

8383
@classmethod
8484
def from_llm_and_tools(

0 commit comments

Comments
 (0)