facilitator

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package facilitator provides functionality for facilitating interactions between critic and fixer agents in a code refactoring process.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Facilitator

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

Facilitator facilitates communication between the critic and fixer agents.

func NewFacilitator

func NewFacilitator(ai brain.Brain, port, criticPort, fixerPort int) *Facilitator

NewFacilitator creates a new instance of Facilitator to manage communication between agents.

func (*Facilitator) AskCritic

func (f *Facilitator) AskCritic(id string, file *protocol.FilePart) (*protocol.JSONRPCResponse, error)

AskCritic sends a file to the critic agent for linting and analysis.

func (*Facilitator) AskFixer

func (f *Facilitator) AskFixer(id string, suggestions []string, class string, file *protocol.FilePart) (*protocol.JSONRPCResponse, error)

AskFixer sends the suggestions and file to the fixer agent for processing.

func (*Facilitator) Close

func (f *Facilitator) Close() error

Close stops the facilitator server and releases resources.

func (*Facilitator) Handler added in v0.2.0

func (f *Facilitator) Handler(handler protocol.Handler)

Handler sets the message handler for the facilitator server.

func (*Facilitator) Start

func (f *Facilitator) Start(ready chan<- struct{}) error

Start starts the facilitator server and prepares it for handling requests.

Jump to

Keyboard shortcuts

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