GenAI.Model (GenAI Core v0.2.0)

Represents a Provider Model plus picker details and encoder.

Link to this section Summary

Link to this section Types

@type t() :: %GenAI.Model{
  description: GenAI.Types.description(),
  details: term(),
  encoder: term(),
  finger_print: GenAI.Types.finger_print(),
  handle: GenAI.Types.node_handle(),
  id: GenAI.Types.node_id(),
  inbound_links: GenAI.Types.link_map(),
  meta: nil | map() | keyword(),
  model: term(),
  name: GenAI.Types.name(),
  outbound_links: GenAI.Types.link_map(),
  provider: term(),
  vsn: float()
}

Link to this section Functions

Link to this function

apply_node_directives(this, graph_link, graph_container, session, context, options)

Link to this function

description(graph)

Callback implementation for GenAI.Graph.NodeBehaviour.description/1.

Link to this function

description(graph, default)

Callback implementation for GenAI.Graph.NodeBehaviour.description/2.

Callback implementation for GenAI.Graph.NodeBehaviour.handle/1.

Link to this function

handle(graph, default)

Callback implementation for GenAI.Graph.NodeBehaviour.handle/2.

Callback implementation for GenAI.Graph.NodeBehaviour.id/1.

Link to this function

inspect_custom_details(subject, opts)

See GenAI.Graph.NodeProtocol.DefaultProvider.inspect_custom_details/2.

Link to this function

inspect_full_detail(subject, opts)

See GenAI.Graph.NodeProtocol.DefaultProvider.inspect_full_detail/2.

Link to this function

inspect_high_detail(subject, opts)

See GenAI.Graph.NodeProtocol.DefaultProvider.inspect_high_detail/2.

Link to this function

inspect_low_detail(subject, opts)

See GenAI.Graph.NodeProtocol.DefaultProvider.inspect_low_detail/2.

Link to this function

inspect_medium_detail(subject, opts)

See GenAI.Graph.NodeProtocol.DefaultProvider.inspect_medium_detail/2.

Callback implementation for GenAI.Graph.NodeBehaviour.name/1.

Link to this function

name(graph, default)

Callback implementation for GenAI.Graph.NodeBehaviour.name/2.

Link to this function

new(options \\ nil)

Callback implementation for GenAI.Graph.NodeBehaviour.new/1.