PromptFitResult
Result of fitting a PromptBuilder output into a token budget.
Usage
PromptFitResult(
text,
tokens_used,
token_budget,
sections_dropped=list(),
)Parameters
text: str-
The fitted prompt text.
tokens_used: int-
Estimated tokens in the fitted text.
token_budget: int-
The token budget that was targeted.
sections_dropped: list[str] = list()- Names/descriptions of sections that were dropped to fit.