aiagent

package
v0.0.0-...-4c964c4 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

WireSet provides a wire set for this package.

Functions

This section is empty.

Types

type CommitPayload

type CommitPayload struct {
	Title     string
	Message   string
	Branch    string
	NewBranch string
	Files     []*Files
}

type Controller

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

func NewController

func NewController(
	authorizer authz.Authorizer,
	intelligence aiagent.Intelligence,
	repoStore store.RepoStore,
	pipelineStore store.PipelineStore,
	executionStore store.ExecutionStore,
	git git.Interface,
	urlProvider url.Provider,
	slackbot *messaging.Slack,
) *Controller

func ProvideController

func ProvideController(
	authorizer authz.Authorizer,
	intelligence aiagent.Intelligence,
	repoStore store.RepoStore,
	pipelineStore store.PipelineStore,
	executionStore store.ExecutionStore,
	git git.Interface,
	urlProvider url.Provider,
	slackbot *messaging.Slack,
) *Controller

func (*Controller) GetAnalysis

func (c *Controller) GetAnalysis(
	ctx context.Context,
	session *auth.Session,
	repoRef string,
	pipelineIdentifier string,
	executionNum int64,
) (*types.AnalyseExecutionOutput, error)

func (*Controller) HandleCallbackEvent

func (c *Controller) HandleCallbackEvent(innerEvent slackevents.EventsAPIInnerEvent) (bool, error)

func (*Controller) HandleEvent

func (c *Controller) HandleEvent(
	_ context.Context,
	eventsAPIEvent slackevents.EventsAPIEvent) (*SlackbotOutput, error)

func (*Controller) ReviewCode

func (c *Controller) ReviewCode(
	ctx context.Context,
	session *auth.Session,
	repoRef string,
) error

type Files

type Files struct {
	SHA sha.SHA
	// contains filtered or unexported fields
}

type SlackbotOutput

type SlackbotOutput struct {
	Success bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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