facilitator

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_TOKENS = 6_000

Variables

This section is empty.

Functions

This section is empty.

Types

type A2AFacilitator added in v0.2.1

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

A2AFacilitator facilitates communication between the critic and fixer agents.

func NewFacilitator

func NewFacilitator(ai brain.Brain, critic domain.Critic, fixer domain.Fixer, reviewer domain.Reviewer, port int, colorless bool, attempts int) *A2AFacilitator

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

func (*A2AFacilitator) Handler added in v0.2.1

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

Handler sets the message handler for the facilitator server.

func (*A2AFacilitator) ListenAndServe added in v0.2.1

func (f *A2AFacilitator) ListenAndServe() error

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

func (*A2AFacilitator) Ready added in v0.2.1

func (f *A2AFacilitator) Ready() <-chan bool

Ready returns a channel that signals when the facilitator server is ready to accept requests.

func (*A2AFacilitator) Refactor added in v0.2.1

func (f *A2AFacilitator) Refactor(job *domain.Job) (*domain.Artifacts, error)

Refactor sends a refactoring request to the facilitator server and returns the refactored classes.

func (*A2AFacilitator) Shutdown added in v0.2.1

func (f *A2AFacilitator) Shutdown() error

Shutdown stops the facilitator server and releases resources.

Jump to

Keyboard shortcuts

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