Elffuss BraidHub

kikocis/GraphRAG-SDK public

main · 430 BRawPermalink
1from abc import ABC, abstractmethod
2
3class StepResult(ABC):
4
5 @property
6 @abstractmethod
7 def output(self) -> str:
8 pass
9
10 @abstractmethod
11 def to_json(self) -> dict:
12 pass
13
14 @staticmethod
15 @abstractmethod
16 def from_json(json: dict) -> "StepResult":
17 pass
18
19 @abstractmethod
20 def __str__(self) -> str:
21 pass
22
23 @abstractmethod
24 def __repr__(self) -> str:
25 pass