Packages

A library for building stateful chains of LLM interactions!

Current section

Files

Jump to
starflow src starflow@api_key.erl
Raw

src/starflow@api_key.erl

-module(starflow@api_key).
-compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch]).
-export([new/2, get/1]).
-export_type([api_key/0]).
-type api_key() :: {api_key, starflow@providers:provider(), binary()}.
-file("/home/ethanthoma/projects/flow/src/starflow/api_key.gleam", 47).
-spec new(starflow@providers:provider(), binary()) -> api_key().
new(Provider, Key) ->
{api_key, Provider, Key}.
-file("/home/ethanthoma/projects/flow/src/starflow/api_key.gleam", 65).
-spec get(api_key()) -> binary().
get(Api_key) ->
{api_key, _, Key} = Api_key,
Key.