voiage.decision_card.DecisionCard
Auditable Decision Card record.
Methods
Section titled “Methods”to_dict
Section titled “to_dict”to_dict([positional or keyword] self: None = None) -> dict[str, Any]Convert DecisionCard to JSON-serializable dictionary.
Parameters:
self
Returns: dict[str, Any]
from_dict
Section titled “from_dict”from_dict([positional or keyword] cls: None = None, [positional or keyword] data: dict[str, Any] = None) -> DecisionCardConstruct DecisionCard from a dictionary.
Parameters:
clsdatadict[str, Any]
Returns: DecisionCard
to_json
Section titled “to_json”to_json([positional or keyword] self: None = None, [positional or keyword] indent: int = 2) -> strSerialize DecisionCard to formatted JSON string.
Parameters:
selfindentint(default:2)
Returns: str
from_json
Section titled “from_json”from_json([positional or keyword] cls: None = None, [positional or keyword] json_str: str = None) -> DecisionCardDeserialize DecisionCard from JSON string.
Parameters:
clsjson_strstr
Returns: DecisionCard
compute_hash
Section titled “compute_hash”compute_hash([positional or keyword] self: None = None) -> strCompute deterministic SHA-256 hash of the decision card contents.
Parameters:
self
Returns: str
to_markdown
Section titled “to_markdown”to_markdown([positional or keyword] self: None = None) -> strRender the DecisionCard as clean executive Markdown.
Parameters:
self
Returns: str
to_html
Section titled “to_html”to_html([positional or keyword] self: None = None) -> strRender the DecisionCard as self-contained HTML.
Parameters:
self
Returns: str