feedback

package
v0.0.0-...-458a5b7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeedbackCollector

type FeedbackCollector struct {
	// contains filtered or unexported fields
}

FeedbackCollector handles feedback collection and processing

func NewFeedbackCollector

func NewFeedbackCollector(console input.Console, options FeedbackCollectorOptions) *FeedbackCollector

NewFeedbackCollector creates a new feedback collector with the specified options

func (*FeedbackCollector) CollectFeedbackAndApply

func (c *FeedbackCollector) CollectFeedbackAndApply(
	ctx context.Context,
	azdAgent agent.Agent,
	AIDisclaimer string,
) error

CollectFeedbackAndApply collects user feedback and applies it using the provided agent

type FeedbackCollectorOptions

type FeedbackCollectorOptions struct {
	// EnableLoop determines if feedback collection should loop for multiple rounds
	EnableLoop bool

	// FeedbackPrompt is the prompt for collecting feedback
	FeedbackPrompt string

	// FeedbackHint is the hint text for FeedbackPrompt
	FeedbackHint string

	// RequireFeedback determines if feedback input is required when provided
	RequireFeedback bool

	// AIDisclaimer is the disclaimer text to show
	AIDisclaimer string
}

FeedbackCollectorOptions configures the feedback collection behavior

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL