class documentation
class TokenVersionExtractor(ABC): (source)
Known subclasses: nebius.base.token_sanitizer.DefaultTokenVersionExtractor
Define the interface that identifies a token version.
Subclasses must implement extract.
| Method | extract |
Get the token version from a token string. |
overridden in
nebius.base.token_sanitizer.DefaultTokenVersionExtractorGet the token version from a token string.
| Parameters | |
token:str | The token string to analyze. |
| Returns | |
tuple[ | A tuple containing the TokenVersion and a boolean indicating whether the token was recognized. |