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)

Link to this function

description(graph_node, default)

Link to this function

do_description(graph_node)

Link to this function

do_description(graph_node, default)

Link to this function

do_handle(graph_node)

Link to this function

do_handle(graph_node, default)

Link to this function

do_id(graph_node)

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)

Link to this function

do_name(graph_node, default)

Link to this function

do_new(module, options)

@spec do_new(module(), any()) :: any()
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)

Link to this function

do_with_id(graph_node)

Link to this function

do_with_id!(graph_node)

Link to this function

handle(graph_node)

Link to this function

handle(graph_node, default)

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)

Link to this function

name(graph_node, default)

Link to this function

new(module, options)

@spec new(module(), any()) :: struct()
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)

Link to this function

with_id(graph_node)