GenAI.Graph.Root (GenAI Core v0.2.0)

The root data structure that contains nested graphs, nodes and other structures.

Link to this section Summary

Functions

Retrieve a nested element by id from graph

Retrieve a nested element by handle from graph

Retrieve a element_lookup entry by element id.

extract nested entry by path from source element.

Retrieve graph context by link

Retrieve an element_lookup entry by handle and base node

Merge a single graph handle entry into lookup table.

Merge list of {handle, element or path to element} entries into lookup table.

Merge element lookup entries

Retrieve closest nested handle nested under base. If a global entry is found and under base it will be used. If a standard entry is found and under base it will be used. Only if no standard or global entry under base exists will locals be checked.

Link to this section Functions

Link to this function

element(this, id)

Retrieve a nested element by id from graph

Link to this function

element_by_handle(this, handle, base \\ nil)

Retrieve a nested element by handle from graph

Link to this function

element_entry(this, element)

Retrieve a element_lookup entry by element id.

Link to this function

get_nested_element(source, path)

extract nested entry by path from source element.

Link to this function

graph_context_by_link(this, link, from_element)

Retrieve graph context by link

Link to this function

handle_entry(this, handle, base \\ nil)

Retrieve an element_lookup entry by handle and base node

Link to this function

merge_handle(this, arg)

Merge a single graph handle entry into lookup table.

Link to this function

merge_handles(this, handles)

Merge list of {handle, element or path to element} entries into lookup table.

Link to this function

merge_lookup_table_entries(this, entries)

Merge element lookup entries

Link to this function

nearest_handle_entry(this, handle, base)

Retrieve closest nested handle nested under base. If a global entry is found and under base it will be used. If a standard entry is found and under base it will be used. Only if no standard or global entry under base exists will locals be checked.

Link to this function

process_node(subject, _, _, session, context, options)