API Reference GenAI Core v0.1.1

modules

Modules

Module for fetching, and setting global or per process default config settings.

A module representing a graph structure in the GenAI system. This module defines the structure and behavior of a graph, including its nodes and the ability to append new nodes.

Generic Graph Exception

Represent a link between two nodes in a graph.

Mermaid Encode Protocol.

Helpers for generating Mermaid graphs using the GenAI.Graph.MermaidProtocol protocol.

A module representing a message node in a graph structure. This module defines the structure and behavior of a message node, including its identifier and content.

A module representing a model node in a graph structure. This module defines the structure and behavior of a model node, including its identifier and content.

Represent a node on graph (generic type).

Behaviour Graph Node Elements must adhere to.

Protocol for managing Graph Nodes.

Default provider for GenAI.Graph.NodeProtocol. Uses function_exported? to invoke the passed module's implementation if any for calls.

A module representing a llm provider (openai, google, etc.) setting node in a graph structure. This module defines the structure and behavior of a provider setting node, including its identifier, provider, setting, and value.

A module representing a setting node in a graph structure. This module defines the structure and behavior of a setting node, including its identifier, setting, and value.

A module representing a tool node in a graph structure. This module defines the structure and behavior of a tool node, including its identifier and content.

A collection of helper functions for VNextGenAI.

Struct for representing a chat message.

Represents image part of chat message.

Represents image part of chat message.

A protocol for handling different types of content in messages.

Represents a tool call in a message thread.

Represents a tool response in a message thread.

The GenAI.Model struct provides detailed information on a provider-model used for picking best model for job based on requirements.

Last reported model evaluation benchmark scores.

Provides standardized structure for tracking capacity details.

Provides standardized structure for tracking costing details.

Tracks fine tuning details for the model, if any.

Provides standardized structure for tracking hyper parameter support such as allowed values, ranges, mapping etc.

Provides standardized structure for tracking modality support details. For example if a model can mimic video support by streaming images, plus audio transcription. Or supports native image and audio.

Provides details on tool usage support: native (api level), prompt injection, no support, etc.

Provides standardized structure for tracking training details such as training cut off, supplemental_training per subject cut offs, etc. censorship. instruct training, dolphin, etc.

Provides standardized structure for tracking use case support details. Where use case is the ability of the model to perform a task like feature extraction, generating synthetic memories, etc. Tracks both per model fixed scores plus dynamic adjustments based on system/user feedback.

Provides standardized structure for tracking extended module details.

Records related to graph links.

Records used by for preparing/encoding VNextGenAI.Session

Custom error for handling request errors in the GenAI module.

Represent status/state such as node state, sessions, message thread, etc.

Dynamic Option/Setting Entry.

This module defines the chat struct used to manage conversations with generative AI models.

Represents a schema for boolean types, converting JSON schema attributes to Elixir struct fields.

Represents a schema for enum types, converting JSON schema attributes to Elixir struct fields.

Represents a schema for integer types, converting JSON schema attributes to Elixir struct fields.

Represents a schema for null types.

Represents a schema for number types, including integers and floating-point numbers.

Represents a schema for object types, converting JSON schema attributes to Elixir struct fields.

Represents a schema for string types, converting JSON schema attributes to Elixir struct fields.

VNextGenAI Types

GenAI.VNext.Graph Type Declarations.

A graph data structure for representing AI graphs, threads, conversations, uml, etc. Utility Class