Final_Assignment_Agent / basic_agent.py
SrcLurker's picture
Ignore python and vim artifacts.
34d197c
raw
history blame
560 Bytes
import os
import logging
import sys
LOG = logging.getLogger(__name__)
# --- Basic Agent Definition ---
# ----- THIS IS WERE YOU CAN BUILD WHAT YOU WANT ------
class BasicAgent:
def __init__(self):
print("BasicAgent initialized.")
LOG.warning("Basic Agent initialized.")
def __call__(self, question: str) -> str:
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