GravityFalls / python /tools /online_knowledge_tool.py
frdel
Docker + SSH, AgentConfig class
deab47c
raw
history blame
398 Bytes
from agent import Agent
from python.helpers import perplexity_search
from python.helpers.tool import Tool, Response
class OnlineKnowledge(Tool):
def execute(self,**kwargs):
return Response(
message=process_question(self.args["question"]),
break_loop=False,
)
def process_question(question):
return str(perplexity_search.perplexity_search(question))