Commit
·
b539f05
1
Parent(s):
2d1791e
fix: try better descriptions
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ class BasicAgent:
|
|
53 |
youtube_transcript_answer_tool = FunctionTool.from_defaults(
|
54 |
get_youtube_transcript,
|
55 |
name="get_youtube_transcript",
|
56 |
-
description="Fetches transcript of the given video
|
57 |
)
|
58 |
|
59 |
def duck_duck_go_search_tool(query: str) -> str:
|
@@ -79,7 +79,7 @@ class BasicAgent:
|
|
79 |
duckduckgo_search_tool = FunctionTool.from_defaults(
|
80 |
duck_duck_go_search_tool,
|
81 |
name="duck_duck_go_search_tool",
|
82 |
-
description="Searches the web and refines the result into a high-quality answer."
|
83 |
)
|
84 |
|
85 |
def wikipedia_search(query: str) -> str:
|
@@ -104,7 +104,7 @@ class BasicAgent:
|
|
104 |
wikipedia_search_tool = FunctionTool.from_defaults(
|
105 |
wikipedia_search,
|
106 |
name="wikipedia_search",
|
107 |
-
description="Searches
|
108 |
)
|
109 |
|
110 |
agent = AgentWorkflow.from_tools_or_functions([duckduckgo_search_tool, youtube_transcript_answer_tool, wikipedia_search_tool], llm=self.llm)
|
|
|
53 |
youtube_transcript_answer_tool = FunctionTool.from_defaults(
|
54 |
get_youtube_transcript,
|
55 |
name="get_youtube_transcript",
|
56 |
+
description="Fetches transcript of the given youtube video and returns matching answers based on query. To be called when video link is given.",
|
57 |
)
|
58 |
|
59 |
def duck_duck_go_search_tool(query: str) -> str:
|
|
|
79 |
duckduckgo_search_tool = FunctionTool.from_defaults(
|
80 |
duck_duck_go_search_tool,
|
81 |
name="duck_duck_go_search_tool",
|
82 |
+
description="Searches the web and refines the result into a high-quality answer. Use when other tools don't seem suitable"
|
83 |
)
|
84 |
|
85 |
def wikipedia_search(query: str) -> str:
|
|
|
104 |
wikipedia_search_tool = FunctionTool.from_defaults(
|
105 |
wikipedia_search,
|
106 |
name="wikipedia_search",
|
107 |
+
description="Searches wikipedia and converts results into a high quality answer."
|
108 |
)
|
109 |
|
110 |
agent = AgentWorkflow.from_tools_or_functions([duckduckgo_search_tool, youtube_transcript_answer_tool, wikipedia_search_tool], llm=self.llm)
|