Merge pull request #151 from hienhayho/main

fix: fix pydantic validation error
This commit is contained in:
João Moura
2024-12-27 18:30:18 -03:00
committed by GitHub

View File

@@ -18,6 +18,10 @@ class LlamaIndexTool(BaseTool):
from llama_index.core.tools import BaseTool as LlamaBaseTool
tool = cast(LlamaBaseTool, self.llama_index_tool)
if self.result_as_answer:
return tool(*args, **kwargs).content
return tool(*args, **kwargs)
@classmethod