Jido.Chat.OptionsLoadOptionGroup (Jido Chat v1.2.0)

Copy Markdown View Source

A labeled group of provider-neutral dynamic select options.

Summary

Functions

Builds an option group from serialized data.

Creates an option group.

Returns the schema for an option group.

Serializes the option group.

Types

t()

@type t() :: %Jido.Chat.OptionsLoadOptionGroup{
  label: binary(),
  metadata: map(),
  options: [any()]
}

Functions

from_map(map)

@spec from_map(map()) :: t()

Builds an option group from serialized data.

new(group)

@spec new(t() | map()) :: t()

Creates an option group.

schema()

Returns the schema for an option group.

to_map(group)

@spec to_map(t()) :: map()

Serializes the option group.