MCPcopy Index your code
hub / github.com/ScrapeGraphAI/toonify / DecoderOptions

Class DecoderOptions

toon/decoder.py:48–67  ·  view source on GitHub ↗

Options for TOON decoding.

Source from the content-addressed store, hash-verified

46
47
48class DecoderOptions:
49 """Options for TOON decoding."""
50
51 def __init__(
52 self,
53 strict: bool = DEFAULT_STRICT,
54 expand_paths: str = EXPAND_PATHS_OFF,
55 default_delimiter: str = DEFAULT_DELIMITER
56 ):
57 """
58 Initialize decoder options.
59
60 Args:
61 strict: Validate structure strictly
62 expand_paths: Path expansion mode ('off' | 'safe')
63 default_delimiter: Default delimiter for arrays
64 """
65 self.strict = strict
66 self.expand_paths = expand_paths
67 self.default_delimiter = default_delimiter
68
69
70def decode(toon_string: str, options: Optional[Dict[str, Any]] = None) -> Any:

Callers 1

decodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…