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:
ian_Cin
2023-12-06 17:06:29 +07:00
committed by GitHub
parent d9e925eb75
commit 797df5a69c
21 changed files with 281 additions and 228 deletions

View File

@@ -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."
)

View File

@@ -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 "

View File

@@ -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. "