Tinkex.Types.EncodedTextChunk (Tinkex v0.3.4)

View Source

Encoded text chunk containing token IDs.

Mirrors Python tinker.types.EncodedTextChunk.

Summary

Functions

Get the length (number of tokens) in this chunk.

Types

t()

@type t() :: %Tinkex.Types.EncodedTextChunk{tokens: [integer()], type: String.t()}

Functions

length(encoded_text_chunk)

@spec length(t()) :: non_neg_integer()

Get the length (number of tokens) in this chunk.