GenAI.Session.State (GenAI Core v0.1.1)
Represent status/state such as node state, sessions, message thread, etc.
Link to this section Summary
Functions
Injection point for a selector/constraint path - e.g. state.settings, state.options, state.provider_settings, etc.
Link to this section Types
@type t() :: %GenAI.Session.State{ data_generators: map(), directive_position: non_neg_integer(), directives: [GenAI.Records.Session.directive()], model: term(), model_settings: map(), monitors: map(), options: map(), provider_settings: map(), settings: map(), stack: map(), thread: list(), thread_messages: map(), vsn: float() }
Link to this section Functions
Link to this function
apply_setting_path(arg)
@spec apply_setting_path( GenAI.Records.Session.session_entry() | GenAI.Records.Session.entry_reference() ) :: [term()]
Injection point for a selector/constraint path - e.g. state.settings, state.options, state.provider_settings, etc.
Link to this function
new(options \\ nil)
Link to this function
reference_expired?(reference, this, context, options, memo \\ %{})
@spec reference_expired?( GenAI.Records.Session.entry_reference(), t(), GenAI.Records.Session.context(), GenAI.Records.Session.options(), Map.t() ) :: {boolean(), {GenAI.Records.Session.entry_reference(), GenAI.Records.Session.state(), Map.t()}}