Skip to main content

Prompt

Simple prompt record with built-in token estimation.

Attributes

AttributeTypeDescription
textstrThe prompt text.

Methods


estimate_tokens()

@classmethod
def estimate_tokens() - > int

Rough token estimate (~4 chars per token).

Returns

TypeDescription
int