View Source Agens.Serving.Config (agens v0.2.0)
The Config struct represents the configuration for a Serving process.
Fields
:name- The unique name for the Serving process.:serving- The module implementing theAgens.Servingbehaviour (i.e. one that callsuse Agens.Serving).:prefixes- AnAgens.Prefixesstruct of custom prompt prefixes. Ifnil, the default prefixes returned byAgens.Prefixes.default/0will be used.:args- Additional arguments passed through to the Serving module on start. Available to the Serving'sAgens.Serving.start/1callback via the initialstate.config.argsand typically used to configure the backend (model name, API base URL, credentials, etc).:timeout- Timeout in milliseconds for LM inference. Defaults to60_000.
Summary
Types
@type t() :: %Agens.Serving.Config{ args: keyword(), name: atom(), prefixes: Agens.Prefixes.t() | nil, serving: module(), timeout: non_neg_integer() }