fix: correct variable name typo in exa_base_tool

This commit is contained in:
theCyberTech
2024-11-20 18:58:58 +08:00
parent a3630418f9
commit 1c37158208

View File

@@ -28,10 +28,10 @@ class EXABaseTool(BaseTool):
} }
def _parse_results(self, results): def _parse_results(self, results):
stirng = [] string = []
for result in results: for result in results:
try: try:
stirng.append( string.append(
"\n".join( "\n".join(
[ [
f"Title: {result['title']}", f"Title: {result['title']}",
@@ -43,7 +43,7 @@ class EXABaseTool(BaseTool):
) )
) )
except KeyError: except KeyError:
next continue
content = "\n".join(stirng) content = "\n".join(string)
return f"\nSearch results: {content}\n" return f"\nSearch results: {content}\n"