Documentation
¶
Overview ¶
Package assist implements the POST /v1/assist/process handler. It accepts either an audio payload (→ STT → Assist pipeline) or a text transcript directly, runs the Framework's Assist Pipeline, and returns the result plus optional TTS audio as base64 in the JSON response.
Host-side tool execution (clipboard, selection, quick-note) is NOT done server-side — the server returns an `action: "execute"` signal and the calling client performs the action. This keeps the Server-Target safe for multi-tenant deployments where host-level side effects would be nonsensical.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler implements the /v1/assist/process HTTP surface.
func New ¶
New constructs a Handler. processor must be non-nil. Transcriber is optional — when omitted, the handler rejects requests that carry audio with a 400/missing-transcriber code.
func (*Handler) ServeSelfTest ¶ added in v0.31.0
func (h *Handler) ServeSelfTest(w http.ResponseWriter, r *http.Request)
type Options ¶
type Options struct {
Processor Processor
Transcriber Transcriber // optional; nil disables audio input
MaxUploadMB int
DefaultLocale string
}
Options configures a single Handler instance.