MCPcopy Index your code
hub / github.com/docker/docker-agent / WithNonInteractive

Function WithNonInteractive

pkg/runtime/runtime.go:367–371  ·  view source on GitHub ↗

WithNonInteractive marks the runtime as headless (e.g., MCP serve mode). When set, blocking operations like elicitation requests are automatically declined instead of waiting for user interaction that will never come. Note: this complements session.WithNonInteractive, which controls per-session loo

(nonInteractive bool)

Source from the content-addressed store, hash-verified

365// the session flag adjusts iteration behavior. In MCP serve mode, both are set
366// by the server code in pkg/mcp/server.go.
367func WithNonInteractive(nonInteractive bool) Opt {
368 return func(r *LocalRuntime) {
369 r.nonInteractive = nonInteractive
370 }
371}
372
373// WithTracer sets a custom OpenTelemetry tracer; if not provided, tracing is disabled (no-op).
374func WithTracer(t trace.Tracer) Opt {

Callers 2

CreateToolHandlerFunction · 0.92

Calls

no outgoing calls

Tested by 1