Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenModelInputResult ¶
GenModelInputResult represents the result returned by genmodelinput hook
type HookManager ¶
type HookManager struct {
// contains filtered or unexported fields
}
HookManager manages session hooks
func NewHookManager ¶
func NewHookManager(hooksConfig *config.SessionHooks) *HookManager
func (*HookManager) OnGenModelInput ¶
func (hm *HookManager) OnGenModelInput(ctx context.Context, sessionID string, sessionName string, messages []*schema.Message) ([]*schema.Message, error)
OnGenModelInput executes the genmodelinput hook if enabled It passes session data via stdin and expects JSON output with []message
func (*HookManager) OnSessionKeep ¶
func (hm *HookManager) OnSessionKeep(ctx context.Context, sessionID string, sessionName string, messages []*schema.Message) error
OnSessionClear executes the session clear hook if enabled
Click to show internal directories.
Click to hide internal directories.