File size: 398 Bytes
e5902c3
deab47c
 
e5902c3
5266ca3
bab921d
201c475
5266ca3
201c475
 
2d2ee7a
201c475
 
1
2
3
4
5
6
7
8
9
10
11
12
13
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))