Skip to main content

Module explain

Module explain 

Source
Expand description

Contract explanation โ€” chain-of-thought narrative for any contract.

Unlike book_gen (reference tables), explain produces prose that walks through the contract section by section, explaining the why behind each element.

Functionsยง

explain_contract
Generate a chain-of-thought narrative explanation for a contract.
explain_contract_json
Generate a JSON explanation of the contract.
explain_contract_markdown
Generate a markdown explanation with headers and LaTeX math.
obligation_pattern
Return a mathematical pattern description for the given obligation type.