Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidDataType ¶
IsValidDataType returns true if dt is a recognized DataType.
func NormalizeName ¶
NormalizeName converts a name to a comparable form (lowercase, underscores).
Types ¶
type Field ¶
type Field struct {
Name string `json:"name" yaml:"name"`
Type DataType `json:"type" yaml:"type"`
Nullable bool `json:"nullable,omitempty" yaml:"nullable,omitempty"`
Description string `json:"description,omitempty" yaml:"description,omitempty"`
}
Field describes a single field the user wants to extract.
type Schema ¶
type Schema struct {
Name string `json:"name,omitempty" yaml:"name,omitempty"`
URL string `json:"url,omitempty" yaml:"url,omitempty"`
Fields []Field `json:"fields" yaml:"fields"`
}
Schema is the user-defined extraction schema.
func ParseFields ¶
ParseFields parses a comma-separated field string like "name, price, rating" into a Schema with string-typed fields (types will be refined by the LLM).
func (*Schema) FieldNames ¶
FieldNames returns the list of field names.
Click to show internal directories.
Click to hide internal directories.