Versions in this module Expand all Collapse all v0 v0.4.1 Oct 7, 2026 v0.4.0 Oct 7, 2026 Changes in this version + var ErrInvalidCommandID = fmt.Errorf("studio/runtime: invalid command id") + func ValidCommandID(id string) bool type ApprovalDecision + PublicID string type CommandStatus + Status string type Registration + Breakpoints []string type RuntimeServer + Retention time.Duration + WriteTimeout time.Duration type RuntimeView + Breakpoints []string v0.3.1 Oct 1, 2026 Changes in this version type RuntimeServer + func (rs *RuntimeServer) MountGuarded(mux *http.ServeMux, guard func(http.Handler) http.Handler) v0.3.0 Oct 1, 2026 Changes in this version + const StateAccepted + const StateFinished + const StateLost + const StateQueued + const StateRejected + var ErrDuplicateCommand = fmt.Errorf("studio/runtime: command id already used") + var ErrNotConnected = fmt.Errorf("studio/runtime: runtime not connected") + var ErrUnknownCommand = fmt.Errorf("studio/runtime: unknown command") + var ErrUnknownRuntime = fmt.Errorf("studio/runtime: unknown runtime") + type Ack struct + CommandID string + Error string + RunID string + State string + Status string + type AgentLimits struct + MaxSteps int + Parallelism int + type AgentRegistration struct + Allow []string + Limits AgentLimits + Manifest string + Models []string + Name string + SideEffects map[string]string + func (a AgentRegistration) IsAllowed(tool string) bool + func (a AgentRegistration) ManifestInstructions() string + func (a AgentRegistration) ManifestModelName() string + func (a AgentRegistration) ManifestToolNames() []string + type AgentView struct + Instructions string + Models []string + Name string + Tools []ToolView + type ApprovalDecision struct + Actor string + CallID string + CommandID string + Content string + Decision string + Reason string + RunID string + type Breakpoints struct + Tools []string + type Budget struct + MaxRunsPerExperiment int64 + MaxTokensPerExperiment int64 + type Command struct + Actor string + Agent string + CommandID string + Engine string + ExperimentID string + Input *string + Overrides Overrides + PublicID string + Runtime string + SideEffects string + Source *SourceSpec + Thread string + TranscriptEdits []TranscriptEdit + type CommandStatus struct + CommandID string + Created time.Time + Error *string + RunID string + State string + Updated time.Time + type Overrides struct + Instructions string + Model string + Options map[string]float64 + Thinking string + ToolsEnabled []string + type RegisterResponse struct + CommandsURL string + RuntimeID string + type Registration struct + Agents []AgentRegistration + Budget Budget + Env string + Host string + Pid int + RuntimeID string + Service string + Threads bool + WeftVersion string + func (r Registration) Agent(name string) (AgentRegistration, bool) + type RuntimeServer struct + AckDeadline time.Duration + FinishDeadline time.Duration + PingEvery time.Duration + func New() *RuntimeServer + func (rs *RuntimeServer) BreakpointsOf(runtimeID string) []string + func (rs *RuntimeServer) Cancel(runtimeID, commandID string) + func (rs *RuntimeServer) Command(id string) (CommandStatus, error) + func (rs *RuntimeServer) CommandOf(id string) (Command, bool) + func (rs *RuntimeServer) Connected(runtimeID string) bool + func (rs *RuntimeServer) Enqueue(runtimeID string, cmd Command) (Command, error) + func (rs *RuntimeServer) EnqueueApproval(runtimeID string, d ApprovalDecision) (ApprovalDecision, error) + func (rs *RuntimeServer) Mount(mux *http.ServeMux) + func (rs *RuntimeServer) PublicOf(runID string) (string, bool) + func (rs *RuntimeServer) Registration(runtimeID string) (Registration, bool) + func (rs *RuntimeServer) RuntimeOf(runID string) (string, bool) + func (rs *RuntimeServer) SetBreakpoints(runtimeID string, tools []string) error + func (rs *RuntimeServer) Snapshot() []RuntimeView + func (rs *RuntimeServer) Steer(runtimeID, runID, message string) error + type RuntimeView struct + Agents []AgentView + ConnectedSince time.Time + Env string + Host string + ID string + LastSeen time.Time + Pid int + Service string + type SourceSpec struct + FromStep int + RunID string + type SteerMessage struct + Message string + RunID string + type ToolView struct + Allow bool + Name string + SideEffects string + type TranscriptEdit struct + CallID string + Content string + Step int + ToolResult string Other modules containing this package github.com/weftgo/weft