Hi,
I’m getting error when programatically training the agents.
Error:
TypeError: Can’t instantiate abstract class BaseKnowledgeSource with abstract methods add, validate_content
My code:
from crews.support_crew_frontdesk.support_crew_frontdesk import SupportCrewFrontDesk
n_iterations = 2
inputs = {“topic”: “Como posso aumentar a eficiencia de meu veículo?”}
filename = “crew_frontdesk.pkl”
try:
SupportCrewFrontDesk().crew().train(
n_iterations=n_iterations,
inputs=inputs,
filename=filename
)
except Exception as e:
raise Exception(f"An error occurred while training the crew: {e}")
Does anyone know what might be happening? What am I doing wrong?