Fountain.Config (fountain_sdk v0.1.0)

Copy Markdown View Source

Resolves Fountain credentials and endpoints.

Summary

Functions

Parses the INI-like file written by fountain auth login.

Resolves explicit options, environment variables, then the CLI credentials file.

Types

t()

@type t() :: %Fountain.Config{
  api_key: String.t(),
  app_url: String.t(),
  base_url: String.t(),
  parent_conversation_id: String.t() | nil
}

Functions

conversation_url(id, config)

default_app_url()

default_base_url()

parse_credentials(raw, profile)

Parses the INI-like file written by fountain auth login.

resolve(opts \\ [])

Resolves explicit options, environment variables, then the CLI credentials file.