Current section
Files
Jump to
Current section
Files
lib/ex_bifrost/model/create_skill_request.ex
# NOTE: This file is auto generated by OpenAPI Generator 7.23.0 (https://openapi-generator.tech)
# using the Elixir SDK Generator template (https://github.com/houllette/elixir-sdk-generator).
# Do not edit this file manually — edit the templates and regenerate instead.
defmodule ExBifrost.Model.CreateSkillRequest do
@moduledoc """
CreateSkillRequest model.
"""
@derive JSON.Encoder
defstruct [
:name,
:description,
:license,
:compatibility,
:metadata,
:extra_frontmatter,
:allowed_tools,
:skill_md_body,
:version,
:files
]
@type t :: %__MODULE__{
:name => String.t(),
:description => String.t(),
:license => String.t() | nil,
:compatibility => String.t() | nil,
:metadata => %{optional(String.t()) => String.t()} | nil,
:extra_frontmatter => %{optional(String.t()) => any()} | nil,
:allowed_tools => String.t() | nil,
:skill_md_body => String.t(),
:version => String.t(),
:files => [ExBifrost.Model.SkillFileEntry.t()] | nil
}
alias ExBifrost.Deserializer
def decode(value) do
value
|> Deserializer.deserialize(:files, :list, ExBifrost.Model.SkillFileEntry)
end
end