mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-28 14:05:02 +00:00
fix whitespace for conversational agent (#690)
This commit is contained in:
parent
8baf6fb920
commit
aef82f5d59
@ -78,7 +78,7 @@ class ConversationalAgent(Agent):
|
||||
raise ValueError(f"Could not parse LLM output: `{llm_output}`")
|
||||
action = match.group(1)
|
||||
action_input = match.group(2)
|
||||
return action, action_input.strip(" ").strip('"')
|
||||
return action.strip(), action_input.strip(" ").strip('"')
|
||||
|
||||
@classmethod
|
||||
def from_llm_and_tools(
|
||||
|
Loading…
Reference in New Issue
Block a user