FunctionTool()
is there a way include any extra prompt along the tool? My tool returns a list of links like: ['<a href="localhost/article/98">The US is proposing ...</a>']
, problem is, when the response is synthetised, the LLM removes the markup and returns: [The US is proposing ...](localhost/article/98)
agent = OpenAIAgent.from_tools(..., system_prompt="my system prompt")
def latest_news_headlines(): """Get the latest news headlines. Keep the HTML markup when returning the results.""" ...
latest_news_tool = FunctionTool.from_defaults( fn=latest_news_headlines, name="latest_news", description="Get the latest news headlines. Keep the HTML markup when returning the results.", )