mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-02 07:42:40 +00:00
fix: correct variable name typo in exa_base_tool
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user