Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultMaxBodyBytes = int64(1 << 20)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeGenerator ¶
type Composer ¶ added in v0.4.0
Composer runs AI graph composition (ComposeGraphRequest in, ComposeGraphResult out, both passed as any for decoupling).
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(config HandlerConfig) *Handler
type HandlerConfig ¶
type HandlerConfig struct {
Validate Validator
Codegen CodeGenerator
YAML YAMLExporter
ImportYAML YAMLImporter
Run Runner
Save Saver
Compose Composer
Parts PartsLister
MaxBodyBytes int64
// Policy authorizes the mutating endpoints: studio run as run.submit and
// studio save as admin.configure, mirroring the checkpoint handler.
// When Policy is nil those endpoints default-deny with 403 auth_required
// unless InsecureAllowNoAuth explicitly opts out; the pure-transform
// endpoints (validate/codegen/yaml/import-yaml) stay open.
Policy security.Policy
// Audit receives policy-denied records when configured.
Audit audit.Sink
// InsecureAllowNoAuth disables the default-deny protection on the
// mutating endpoints when no Policy is configured. Only set it behind an
// authenticating reverse proxy or in tests.
InsecureAllowNoAuth bool
}
type PartsLister ¶ added in v0.4.0
type PartsLister interface {
ListStudioParts() any
}
PartsLister returns the live scenario's composable parts.
type YAMLExporter ¶
Click to show internal directories.
Click to hide internal directories.