refractor agents (#100)
* refractor agents * minor cosmetic, add terminal ui for cli * pump to 0.3.4 * Add temporary path * fix unclose files in tests --------- Co-authored-by: trducng <trungduc1992@gmail.com>
This commit is contained in:
@@ -11,8 +11,8 @@ class GoogleSearchArgs(BaseModel):
|
||||
|
||||
|
||||
class GoogleSearchTool(BaseTool):
|
||||
name = "google_search"
|
||||
description = (
|
||||
name: str = "google_search"
|
||||
description: str = (
|
||||
"A search engine retrieving top search results as snippets from Google. "
|
||||
"Input should be a search query."
|
||||
)
|
||||
|
@@ -14,8 +14,8 @@ class LLMArgs(BaseModel):
|
||||
|
||||
|
||||
class LLMTool(BaseTool):
|
||||
name = "llm"
|
||||
description = (
|
||||
name: str = "llm"
|
||||
description: str = (
|
||||
"A pretrained LLM like yourself. Useful when you need to act with "
|
||||
"general world knowledge and common sense. Prioritize it when you "
|
||||
"are confident in solving the problem "
|
||||
|
@@ -48,8 +48,8 @@ class WikipediaArgs(BaseModel):
|
||||
class WikipediaTool(BaseTool):
|
||||
"""Tool that adds the capability to query the Wikipedia API."""
|
||||
|
||||
name = "wikipedia"
|
||||
description = (
|
||||
name: str = "wikipedia"
|
||||
description: str = (
|
||||
"Search engine from Wikipedia, retrieving relevant wiki page. "
|
||||
"Useful when you need to get holistic knowledge about people, "
|
||||
"places, companies, historical events, or other subjects. "
|
||||
|
Reference in New Issue
Block a user