initial commit of untested function stuff

This commit is contained in:
2024-11-08 20:53:12 -05:00
parent f603010dee
commit 37939088ed
15 changed files with 693 additions and 20 deletions

21
error.go Normal file
View File

@@ -0,0 +1,21 @@
package go_llm
import "fmt"
// Error is essentially just an error, but it is used to differentiate between a normal error and a fatal error.
type Error struct {
error
Source error
Parameter error
}
func newError(parent error, err error) Error {
e := fmt.Errorf("%w: %w", parent, err)
return Error{
error: e,
Source: parent,
Parameter: err,
}
}