Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalToStruct ¶
func UnmarshalToStruct[T any]( result EntityExtractorResult, out *T, ) error
Types ¶
type EntityExtractor ¶
type EntityExtractor struct {
LlamaCppClient *llamacpp.LlamaCppClient
MaxRetries int
}
func (*EntityExtractor) ExtractFromString ¶
func (self *EntityExtractor) ExtractFromString( responseChannel chan EntityExtractorResult, jsonSchema any, userInput string, )
type EntityExtractorResult ¶
type EntityJsonSchemaValidator ¶
type EntityJsonSchemaValidator struct {
CompiledJsonSchema *jsonschema.Schema
MarshaledJsonSchema []byte
}
type EntityJsonSchemaValidatorBuilder ¶
type EntityJsonSchemaValidatorBuilder struct {
}
func (*EntityJsonSchemaValidatorBuilder) BuildEntityJsonSchemaValidator ¶
func (self *EntityJsonSchemaValidatorBuilder) BuildEntityJsonSchemaValidator( jsonSchema any, ) (*EntityJsonSchemaValidator, error)
Click to show internal directories.
Click to hide internal directories.