This commit is contained in:
30
packages/elixir/lib/kreuzberg/code_content_mode.ex
generated
Normal file
30
packages/elixir/lib/kreuzberg/code_content_mode.ex
generated
Normal file
@@ -0,0 +1,30 @@
|
||||
# This file is auto-generated by alef — DO NOT EDIT.
|
||||
# alef:hash:4e15143f4af1ae8bafbdb1506ef057da924484c66a19483966333558ad437e75
|
||||
# To regenerate: alef generate
|
||||
# To verify freshness: alef verify --exit-code
|
||||
# Issues & docs: https://github.com/kreuzberg-dev/alef
|
||||
defmodule Kreuzberg.CodeContentMode do
|
||||
@moduledoc """
|
||||
Content rendering mode for code extraction.
|
||||
|
||||
Controls how extracted code content is represented in the `content` field
|
||||
of `ExtractionResult`.
|
||||
"""
|
||||
|
||||
@typedoc "Content rendering mode for code extraction."
|
||||
@type t :: :chunks | :raw | :structure
|
||||
|
||||
@chunks :chunks
|
||||
@raw :raw
|
||||
@structure :structure
|
||||
|
||||
@doc "Use TSLP semantic chunks as content (default)."
|
||||
@spec chunks() :: t()
|
||||
def chunks, do: @chunks
|
||||
@doc "Use raw source code as content."
|
||||
@spec raw() :: t()
|
||||
def raw, do: @raw
|
||||
@doc "Emit function/class headings + docstrings (no code bodies)."
|
||||
@spec structure() :: t()
|
||||
def structure, do: @structure
|
||||
end
|
||||
Reference in New Issue
Block a user