Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Hook ¶
type Hook interface {
OnBeforeInvoke(context.Context) context.Context
OnAfterInvoke(ctx context.Context, err error)
OnFirstChunk(context.Context, error) context.Context
}
Hook ...
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
Instance ...
func (*Instance) GenerateImage ¶
func (mi *Instance) GenerateImage(ctx context.Context, prompt string, options ...InvokeOption) (string, error)
Invoke ...
type InvokeOption ¶
type InvokeOption func(*InvokeOptions)
InvokeOption is a function that configures a InvokeOptions.
type OtelHook ¶
type OtelHook struct {
// contains filtered or unexported fields
}
OtelHook ...
func (*OtelHook) OnAfterInvoke ¶
OnAfterInvoke ...
func (*OtelHook) OnBeforeInvoke ¶
OnBeforeInvoke ...
Click to show internal directories.
Click to hide internal directories.