Documentation
¶
Overview ¶
Package gatedcontext provides a processor that holds LLMContextFrame until a notifier signals release.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Processor ¶
type Processor struct {
*processors.BaseProcessor
Notifier *notifier.Notifier
StartOpen bool
// contains filtered or unexported fields
}
Processor holds the latest LLMContextFrame until Notify() is called on the notifier, then pushes it.
func New ¶
New returns a gated LLM context processor. When Notifier.Notify() is called, the last stored LLMContextFrame is pushed downstream.
func (*Processor) ProcessFrame ¶
func (p *Processor) ProcessFrame(ctx context.Context, f frames.Frame, dir processors.Direction) error
ProcessFrame holds LLMContextFrame until notifier signals; other frames pass through.
Click to show internal directories.
Click to hide internal directories.