Help us shape the future of Go! Take the 2026 Go Developer Survey

modelbroker

package
v0.2.26 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTurnFailed = errors.New("model turn failed; retry with a new operation")
View Source
var ErrUnavailable = errors.New("configured model route is not available for this runner")
View Source
var ErrUncertain = errors.New("model turn outcome requires reconciliation; allowance remains held")

Functions

This section is empty.

Types

type Service

type Service struct {
	AuthorizeReservation func(context.Context, pgx.Tx, workflow.Task, budget.Reservation) error
	// contains filtered or unexported fields
}

func New

func New(db *store.Store, runners *runner.Service, connections *connections.Service, budgets *budget.Service, private *privateconnector.Connector, vault *secrets.Vault, development bool) *Service

func (*Service) Turn

func (s *Service) Turn(ctx context.Context, credential string, in model.Turn) (model.TurnResult, error)

Jump to

Keyboard shortcuts

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