Tinkex.Types.StopReason (Tinkex v0.3.4)

View Source

Stop reason for sampling completion.

Mirrors Python tinker.types.stop_reason.StopReason. Wire format: "length" | "stop"

Summary

Functions

Parse wire format string to atom.

Convert atom to wire format string.

Types

t()

@type t() :: :length | :stop

Functions

parse(arg1)

@spec parse(String.t() | nil) :: t() | nil

Parse wire format string to atom.

to_string(atom)

@spec to_string(t()) :: String.t()

Convert atom to wire format string.