Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
vblagoje committed May 17, 2023
1 parent 48fc634 commit 75fe82f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/agent_multihop_qa.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@

for question in hotpot_questions:
result = agent.run(query=question)
print(f"\n{result}")
print(result)
2 changes: 1 addition & 1 deletion haystack/agents/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ def on_agent_start(**kwargs: Any) -> None:
self.callback_manager.on_new_token += lambda token, **kwargs: print_text(token, color=agent_color)
else:
self.callback_manager.on_agent_step += lambda agent_step: print_text(
agent_step.prompt_node_response + "\n", color=agent_color
agent_step.prompt_node_response, end="\n", color=agent_color
)

def add_tool(self, tool: Tool):
Expand Down

0 comments on commit 75fe82f

Please sign in to comment.