From 4e20a5095fdcea0a5305df151462fcad6b29fc6e Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Wed, 27 Mar 2024 15:09:30 -0700 Subject: [PATCH] minor docs improvements --- controllers/jsctrl/samples/aici-types.d.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/controllers/jsctrl/samples/aici-types.d.ts b/controllers/jsctrl/samples/aici-types.d.ts index 9b0fe7dd..767bf8cd 100644 --- a/controllers/jsctrl/samples/aici-types.d.ts +++ b/controllers/jsctrl/samples/aici-types.d.ts @@ -304,10 +304,19 @@ export class MidProcessResult { _n_backtrack: number; _n_ff_tokens: Token[]; constructor(); + /** + * Stop the current sequence. + */ static stop(): MidProcessResult; - static skipMe(): MidProcessResult; - static bias(bias: TokenSet): MidProcessResult; + /** + * Sample one of the tokens from the set. + */ + static bias(allowedTokens: TokenSet): MidProcessResult; + /** + * Backtrack given number of tokens and then appends the given tokens to the prompt. + */ static splice(backtrack: number, tokens: Token[]): MidProcessResult; + static skipMe(): MidProcessResult; } export class PreProcessResult { _n_suspended: boolean;