Diego Staphorst
feat(langchain) knowledge base
9e4d4b4
raw
history blame contribute delete
514 Bytes
class BasicAgent:
"""
A simple agent that returns a fixed answer for any question.
"""
def __init__(self):
print("BasicAgent initialized.")
def __call__(self, question: str) -> str:
"""
Processes the question and returns a fixed answer.
"""
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