Skip to content

rule

Rule

Bases: BaseRule

Source code in griptape/rules/rule.py
@define(frozen=True)
class Rule(BaseRule):
    value: str = field()

    def to_text(self) -> str:
        return self.value

value: str = field() class-attribute instance-attribute

to_text()

Source code in griptape/rules/rule.py
def to_text(self) -> str:
    return self.value