Current section

Files

Jump to
llmgleam src llmgleam@types.erl
Raw

src/llmgleam@types.erl

-module(llmgleam@types).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]).
-define(FILEPATH, "src/llmgleam/types.gleam").
-export_type([role/0, chat_message/0, completion/0, completion_error/0]).
-type role() :: user | system.
-type chat_message() :: {chat_message, binary(), role()}.
-type completion() :: {completion, binary()}.
-type completion_error() :: {http_error, binary()} |
{json_error, binary()} |
{api_error, binary()}.