Versions in this module Expand all Collapse all v0 v0.1.0 Sep 1, 2026 Changes in this version + func New(cfg Config) agent.Middleware + type CompletionMarkerConfig struct + FeedbackMessageTemplate *string + Marker string + type CompletionMarkerEvaluator struct + func NewCompletionMarkerEvaluator(config CompletionMarkerConfig) *CompletionMarkerEvaluator + func (e *CompletionMarkerEvaluator) Evaluate(_ context.Context, loop *Context) (Evaluation, error) + type Config struct + Evaluators []Evaluator + ExcludeOnBehalfOfMessages bool + FreshContextPerIteration bool + MaxIterations *int + NonStreamingReturnsLastResponseOnly bool + OnBehalfOfAuthorName string + SessionCreatedCallback func(context.Context, *agent.Session) error + type Context struct + AdditionalProperties map[string]any + Feedback []string + InitialMessages []*message.Message + Iteration int + LastResponse *agent.Response + Options []agent.Option + type Evaluation struct + Feedback string + Messages []*message.Message + ShouldReinvoke bool + func Continue(feedback string) Evaluation + func ContinueWithMessages(messages []*message.Message) Evaluation + func Stop() Evaluation + type Evaluator interface + Evaluate func(ctx context.Context, loop *Context) (Evaluation, error) + type EvaluatorFunc func(ctx context.Context, loop *Context) (Evaluation, error) + func (f EvaluatorFunc) Evaluate(ctx context.Context, loop *Context) (Evaluation, error)