Packages

Generative AI Wrapper: access multiple apis through single standardized interface.

Current section

Files

Jump to
genai lib gen_ai graph node setting_node.protocols.ex
Raw

lib/gen_ai/graph/node/setting_node.protocols.ex

defimpl GenAi.Graph.NodeProtocol, for: GenAI.Graph.SettingNode do
def apply(node, state)
def apply(node, state) do
GenAI.Thread.StateProtocol.with_setting(state, node.setting, node.value)
end
end