Skip to content
View as Markdown

tinker_cookbook.tokenizer_utils.TmlTokenizer

Generated from tinker-cookbook at commit 8bf7dd6. Source links point at that snapshot.

class tinker_cookbook.tokenizer_utils.TmlTokenizer(Protocol)

Structural type for the underlying tml_renderers tokenizer.

Cookbook never constructs this object (tml_renderers.tokenizers does), and tml_renderers is lazily imported, so its concrete type is not referenceable here. This protocol pins the small surface the cookbook adapter and renderer actually rely on, making the contract explicit instead of Any duck-typing.

Fields:

Referenced by