fleetservice

package
v1.0.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: Apache-2.0 Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type DispatchRequest

type DispatchRequest struct {
	AgentName      string `json:"agentName"`
	Intent         string `json:"intent"`
	HITLPolicyName string `json:"hitlPolicyName"`
	Cwd            string `json:"cwd,omitempty"`

	ParentSessionID string `json:"parentSessionId,omitempty"`
}

type DispatchResult

type DispatchResult struct {
	InstanceID string `json:"instanceId"`
	SessionID  string `json:"sessionId"`
	MissionID  string `json:"missionId"`
}

type Option

type Option func(*service)

func WithComputeBounds

func WithComputeBounds(r hitlservice.ComputeBoundsReader) Option

func WithPolicyValidator

func WithPolicyValidator(v hitlservice.PolicyValidator) Option

type Service

type Service interface {
	List(ctx context.Context) ([]agentinstance.FleetEntry, error)

	Get(ctx context.Context, instanceID string) (agentinstance.InstanceStatus, error)

	Dispatch(ctx context.Context, req DispatchRequest) (DispatchResult, error)

	Stop(ctx context.Context, instanceID string) error

	Cancel(ctx context.Context, instanceID, sessionID string) error
}

func New

func New(
	instances agentinstance.Manager,
	agents agentregistryservice.Service,
	missions missionservice.Service,
	workspaceRoots *vfs.Factory,
	projectRoot string,
	tracker libtracker.ActivityTracker,
	opts ...Option,
) Service

type UnattendedPermissionDeps

type UnattendedPermissionDeps struct {
	HITL hitlservice.Service

	Missions missionservice.Service

	Sink taskengine.TaskEventSink

	DefaultPolicyName string

	Tracker libtracker.ActivityTracker
}

Jump to

Keyboard shortcuts

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