Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApproxTokenCount ¶
ApproxTokenCount returns an approximate token count for the given text. Uses a 1.5x multiplier on word count as a rough heuristic for code-heavy content.
func FormatDocSnippets ¶
FormatDocSnippets renders snippets as LLM-friendly markdown text, stopping when the token budget is exceeded (always keeps at least 1 snippet).
func RankLibraries ¶
func RankLibraries(query string, libs []store.LibraryRecord) []store.LibraryRecord
RankLibraries scores library results for resolve-library-id.
Types ¶
type Snippet ¶
type Snippet struct {
EntityName string
MethodName string
Signature string
Description string
Parameters []SnippetParam
ReturnType string
ReturnDesc string
SourceCode string
WrappedSource string
WrappedMethod string
URL string
}
Snippet holds the data needed for formatting a documentation snippet.
Click to show internal directories.
Click to hide internal directories.