fix whitespace for conversational agent (#690)

pull/701/head
Harrison Chase 1 year ago committed by GitHub
parent 8baf6fb920
commit aef82f5d59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save