Method
fetch
(self, state: Dict, session: Session, ctx: Context)
Source from the content-addressed store, hash-verified
| 179 | return 'extract' |
| 180 | |
| 181 | def fetch(self, state: Dict, session: Session, ctx: Context) -> Iterable[Tuple[object, dict]]: |
| 182 | raw_model = self.stream.raw_model(session) |
| 183 | query = session.query(raw_model).where(raw_model.params == self._params(ctx)) |
| 184 | for raw in query.all(): |
| 185 | yield raw, state |
| 186 | |
| 187 | def process(self, raw: RawModel, session: Session, ctx: Context): |
| 188 | tool_model = self.stream.extract(json.loads(raw.data)) |
Callers
nothing calls this directly
Tested by
no test coverage detected