Pidge.App.Loft (pidge v0.2.0)

Summary

Functions

This is a regsitry as the primary access point for all Apps compiled assets. This includes pidge code, local functions, and prompt files.

Callback implementation for GenServer.init/1.

Functions

Link to this function

child_spec(init_arg)

This is a regsitry as the primary access point for all Apps compiled assets. This includes pidge code, local functions, and prompt files.

It is made as a GenServer, so that in a running multi-tenant system, many apps can be loaded and unloaded during the lifetime of the system.

Link to this function

get_local_function(app_name, local_function_name)

@spec get_local_function(atom(), String.t()) :: {atom(), String.t()}
Link to this function

get_pidge_code(app_name, pidge_code_name)

@spec get_pidge_code(atom(), atom()) :: String.t()
Link to this function

get_prompt(app_name, prompt_name)

@spec get_prompt(atom(), String.t()) :: String.t()

Callback implementation for GenServer.init/1.

Link to this function

read_pidge_ast_from_raw_string(code_str)

Link to this function

register_app(app_name, app)

@spec register_app(atom(), String.t() | map()) :: :ok | {:error, any()}