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)
| 365 | // the session flag adjusts iteration behavior. In MCP serve mode, both are set |
| 366 | // by the server code in pkg/mcp/server.go. |
| 367 | func 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). |
| 374 | func WithTracer(t trace.Tracer) Opt { |
no outgoing calls