GenAI.Tool.Schema.Object (Noizu Labs, GenAI Wrapper v0.0.2)

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

Link to this section Summary

Functions

Converts a JSON map to a GenAI.Tool.Schema.String struct, handling naming conventions.

Link to this section Types

@type t() :: %GenAI.Tool.Schema.Object{
  additional_properties: boolean() | map() | nil,
  description: String.t() | nil,
  max_properties: integer() | nil,
  min_properties: integer() | nil,
  pattern_properties: map() | nil,
  properties: map() | nil,
  property_names: map() | nil,
  required: [String.t()] | nil,
  type: String.t()
}

Link to this section Functions

Link to this function

from_json(attributes)

@spec from_json(map()) :: t()

Converts a JSON map to a GenAI.Tool.Schema.String struct, handling naming conventions.