File size: 442 Bytes
9c0b78b
 
 
abc8e49
 
9c0b78b
 
 
 
1
2
3
4
5
6
7
8
9
10
class BasicAgent:
    def __init__(self):
        print("BasicAgent initialized.")
    def __call__(self, question_item: dict) -> str:
        question: str = question_item.get("question", "I have no question.")
        print(f"Agent received question (first 50 chars): {question[:50]}...")
        fixed_answer = "This is a default answer."
        print(f"Agent returning fixed answer: {fixed_answer}")
        return fixed_answer