Strip whitespaces and quotes from the string
This commit is contained in:
parent
f66d23ad25
commit
98f6089ca2
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ class AkariParser(AgentOutputParser):
|
|||
action_input = match.group(2)
|
||||
if action == "Answer":
|
||||
return AgentFinish(
|
||||
return_values = {"output": action_input.strip()},
|
||||
return_values = {"output": action_input.strip(" ").strip('"')},
|
||||
log = llm_output,
|
||||
)
|
||||
return AgentAction(tool=action, tool_input=action_input.strip(" ").strip('"'), log=llm_output)
|
||||
|
|
Reference in a new issue