Kreuzberg.CodeChunkContext (kreuzberg v4.9.5)

Copy Markdown View Source

Context for a code chunk (parent scope information).

Fields

  • :parent_name - Name of the parent scope
  • :parent_kind - Kind of the parent scope

Summary

Types

t()

@type t() :: %Kreuzberg.CodeChunkContext{
  parent_kind: String.t() | nil,
  parent_name: String.t() | nil
}

Functions

from_map(data)

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

to_map(ctx)

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