'Write a book' flow hallucinates part of the references when asked for providing those

@Ben You can force tool output as a result by setting the result_as_answer parameter to True. Try the following:

from crewai.agent import Agent
from crewai_tools import SerperDevTool

my_agent = Agent(
    ...,
    tools=[SerperDevTool(result_as_answer=True)],
)