fix whitespace for conversational agent (#690)

This commit is contained in:
Harrison Chase 2023-01-22 22:39:53 -08:00 committed by GitHub
parent 8baf6fb920
commit aef82f5d59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(