MCPcopy Create free account
hub / github.com/InternScience/InternAgent / QA

Class QA

tasks/AutoMem/run_0/code/load_dataset.py:9–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8@dataclass
9class QA:
10 question: str
11 answer: Optional[str]
12 evidence: List[str]
13 category: Optional[int] = None
14 adversarial_answer: Optional[str] = None
15
16 @property
17 def final_answer(self) -> Optional[str]:
18 """Get the appropriate answer based on category."""
19 if self.category == 5:
20 return self.adversarial_answer
21 return self.answer
22
23@dataclass
24class Turn:

Callers 1

load_locomo_datasetFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected