知识问答
基于知识库的问答(使用LLM总结),支持SSE流式响应
Path parameters
会话ID
Request body
Whether agent mode is enabled for this request
Selected custom agent ID (backend resolves shared agent and its tenant from share relation)
Source channel: "web", "api", "im", etc.
Whether to disable auto title generation
EnableMemory is the per-request override for the memory feature. Pointer + omitempty so the request can distinguish three states: nil = client did not specify; backend falls back to the calling user's persisted preference (user.preferences.enable_memory), defaulting to false if that's also unset. This is the path used by the normal logged-in chat UI now that the toggle is stored server-side per user. *true / *false = explicit override. Embedded mode forces *false so a user's personal memory setting doesn't leak into a widget context; older clients that still send a literal bool also land here (back-compat).
Selected knowledge base ID for this request
Selected knowledge ID for this request
Query text for knowledge base search
Optional summary model ID for this request (overrides session default)
Whether web search is enabled for this request
Response
问答结果(SSE流)