Files
cyclop/persona_tool.py
T

18 lines
522 B
Python

class PersonaTool(BaseTool):
def __init__(self):
super().__init__()
def generate_response(self, persona_description: str, query: str):
"""
Makes a call to the OpenAI API using the persona as a system prompt.
Parameters:
persona_description (str): Description of the persona.
query (str): Query to be processed.
Returns:
str: The response generated by the OpenAI API.
"""
# Call to OpenAI API would be here
pass