Jido.Chat.OptionsLoadOption (Jido Chat v1.2.0)

Copy Markdown View Source

Provider-neutral option returned by a dynamic select loader.

Summary

Functions

Builds an option from serialized data.

Creates an option-load option.

Returns the schema for an option-load option.

Serializes the option.

Types

t()

@type t() :: %Jido.Chat.OptionsLoadOption{
  description: nil | nil | binary(),
  label: binary(),
  metadata: map(),
  value: binary()
}

Functions

from_map(map)

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

Builds an option from serialized data.

new(option)

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

Creates an option-load option.

schema()

Returns the schema for an option-load option.

to_map(option)

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

Serializes the option.