GenAI.Graph.NodeProtocol.DefaultProvider (GenAI Core v0.1.1)
Default provider for GenAI.Graph.NodeProtocol. Uses function_exported? to invoke the passed module's implementation if any for calls.
Link to this section Summary
Link to this section Functions
Link to this function
description(graph_node)
@spec description(GenAI.Types.Graph.graph_node()) :: GenAI.Types.result(GenAI.Types.description(), GenAI.Types.details())
Link to this function
description(graph_node, default)
@spec description(GenAI.Types.Graph.graph_node(), GenAI.Types.description()) :: GenAI.Types.result(GenAI.Types.description(), GenAI.Types.details())
Link to this function
do_description(graph_node)
@spec do_description(GenAI.Types.Graph.graph_node()) :: GenAI.Types.result(GenAI.Types.description(), GenAI.Types.details())
Link to this function
do_description(graph_node, default)
@spec do_description(GenAI.Types.Graph.graph_node(), GenAI.Types.description()) :: GenAI.Types.result(GenAI.Types.description(), GenAI.Types.details())
Link to this function
do_handle(graph_node)
@spec do_handle(GenAI.Types.Graph.graph_node()) :: GenAI.Types.result(GenAI.Types.handle(), GenAI.Types.details())
Link to this function
do_handle(graph_node, default)
@spec do_handle(GenAI.Types.Graph.graph_node(), GenAI.Types.handle()) :: GenAI.Types.result(GenAI.Types.handle(), GenAI.Types.details())
Link to this function
do_id(graph_node)
@spec do_id(GenAI.Types.Graph.graph_node()) :: GenAI.Types.result(GenAI.Types.Graph.graph_node_id(), GenAI.Types.details())
Link to this function
do_inbound_links(graph_node, graph, options)
@spec do_inbound_links( GenAI.Types.Graph.graph_node(), GenAI.Types.Graph.graph(), map() ) :: {:ok, map()} | {:error, term()}
Link to this function
do_name(graph_node)
@spec do_name(GenAI.Types.Graph.graph_node()) :: GenAI.Types.result(GenAI.Types.name(), GenAI.Types.details())
Link to this function
do_name(graph_node, default)
@spec do_name(GenAI.Types.Graph.graph_node(), GenAI.Types.name()) :: GenAI.Types.result(GenAI.Types.name(), GenAI.Types.details())
Link to this function
do_new(module, options)
Link to this function
do_outbound_links(graph_node, graph, options)
@spec do_outbound_links( GenAI.Types.Graph.graph_node(), GenAI.Types.Graph.graph(), map() ) :: {:ok, map()} | {:error, term()}
Link to this function
do_register_link(graph_node, graph, link, options)
@spec do_register_link( GenAI.Types.Graph.graph_node(), GenAI.Types.Graph.graph(), GenAI.Types.Graph.graph_link(), map() ) :: GenAI.Types.result(GenAI.Types.Graph.graph_node(), GenAI.Types.details())
Link to this function
do_with_id(graph_node)
@spec do_with_id(GenAI.Types.Graph.graph_node()) :: GenAI.Types.result(GenAI.Types.Graph.graph_node(), GenAI.Types.details())
Link to this function
do_with_id!(graph_node)
@spec do_with_id!(GenAI.Types.Graph.graph_node()) :: GenAI.Types.Graph.graph_node()
Link to this function
handle(graph_node)
@spec handle(GenAI.Types.Graph.graph_node()) :: GenAI.Types.result(GenAI.Types.handle(), GenAI.Types.details())
Link to this function
handle(graph_node, default)
@spec handle(GenAI.Types.Graph.graph_node(), GenAI.Types.handle()) :: GenAI.Types.result(GenAI.Types.handle(), GenAI.Types.details())
Link to this function
id(graph_node)
@spec id(GenAI.Types.Graph.graph_node()) :: GenAI.Types.result(GenAI.Types.Graph.graph_node_id(), GenAI.Types.details())
Link to this function
inbound_links(graph_node, graph, options)
@spec inbound_links(GenAI.Types.Graph.graph_node(), GenAI.Types.Graph.graph(), map()) :: {:ok, map()} | {:error, term()}
Link to this function
name(graph_node)
@spec name(GenAI.Types.Graph.graph_node()) :: GenAI.Types.result(GenAI.Types.name(), GenAI.Types.details())
Link to this function
name(graph_node, default)
@spec name(GenAI.Types.Graph.graph_node(), GenAI.Types.name()) :: GenAI.Types.result(GenAI.Types.name(), GenAI.Types.details())
Link to this function
new(module, options)
Link to this function
outbound_links(graph_node, graph, options)
@spec outbound_links(GenAI.Types.Graph.graph_node(), GenAI.Types.Graph.graph(), map()) :: {:ok, map()} | {:error, term()}
Link to this function
register_link(graph_node, graph, link, options)
@spec register_link( GenAI.Types.Graph.graph_node(), GenAI.Types.Graph.graph(), GenAI.Types.Graph.graph_link(), map() ) :: GenAI.Types.result(GenAI.Types.Graph.graph_node(), GenAI.Types.details())
Link to this function
with_id(graph_node)
@spec with_id(GenAI.Types.Graph.graph_node()) :: GenAI.Types.result(GenAI.Types.Graph.graph_node(), GenAI.Types.details())