MCPcopy Create free account
hub / github.com/OpenDCAI/Paper2Any / _state_get

Function _state_get

script/run_paper2figure_cli.py:40–43  ·  view source on GitHub ↗
(state, key: str, default=None)

Source from the content-addressed store, hash-verified

38
39
40def _state_get(state, key: str, default=None):
41 if isinstance(state, dict):
42 return state.get(key, default)
43 return getattr(state, key, default)
44
45
46# Workflow mapping for different graph types

Callers 1

print_resultsFunction · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected