Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(name string, factory FunctionFactory)
Types ¶
type Background ¶
type CallbackURL ¶
type CallbackURL struct{ CallbackURL any }
type Function ¶
type Function interface { Name() string Description() string SystemMessage(lang string) string UserMessage() string Schema() (json.RawMessage, error) RequestOptions() []sdk.RequestOption CompletionOptions() []sdk.PatchOption Callback(ctx context.Context, arguments json.RawMessage, input interface{}) (any, error) Handler(ctx context.Context, factory FunctionFactory, req *pb.ApplyRequest, openaiURL *url.URL, xAIProxyModelId string) (any, error) }
type FunctionFactory ¶
func Retrieve ¶
func Retrieve(name string) (FunctionFactory, bool)
Click to show internal directories.
Click to hide internal directories.