Documentation
¶
Overview ¶
Copyright 2025 National Technology and Engineering Solutions of Sandia SPDX-License-Identifier: BSD-3-Clause
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatAnalysis ¶
Types ¶
type Counter ¶
type Counter interface {
CountBibliographyEntries(*documents.Bibliography) (int, error)
}
type EntryState ¶
type EntryState struct {
ID string
TextStatus string
Text string
AnalysisStatus string
LookupCards []LookupCard
Summary SummaryView
Error string
}
type LookupCard ¶ added in v0.3.2
func BuildLookupCards ¶ added in v0.3.2
func BuildLookupCards(result *lookup.Result) []LookupCard
type Provider ¶
type Provider interface {
PrepareBibliographyContent([]byte) (*documents.Bibliography, error)
EntryFromBibliography(*documents.Bibliography, int) (string, error)
entries.Classifier
entries.Parser
documents.MetaExtractor
Summarize(*lookup.Result) (bool, string, error)
}
type ProviderKind ¶
type ProviderKind string
const ( ProviderNone ProviderKind = "" ProviderShirty ProviderKind = "Shirty" ProviderOpenRouter ProviderKind = "OpenRouter" )
type Runtime ¶
type Runtime struct {
Kind ProviderKind
Provider Provider
Counter Counter
CrossrefClient *crossref.Client
}
func NewRuntime ¶
type State ¶
type State struct {
Provider ProviderKind
Phase string
Total int
Completed int
Entries []EntryState
Error string
}
func AnalyzePDF ¶
type SummaryView ¶ added in v0.3.2
func BuildSummaryView ¶ added in v0.3.2
func BuildSummaryView(result *lookup.Result) SummaryView
Click to show internal directories.
Click to hide internal directories.