mirror of
https://github.com/langgenius/dify.git
synced 2026-05-31 06:06:20 +08:00
Route AppMode.AGENT through AppGenerateService to a new AgentAppGenerator that resolves the bound roster Agent + published Soul snapshot, synthesizes an EasyUI-shaped app config from the Soul, and drives one conversation turn via AgentAppRunner against the dify-agent backend (streamed message + message_end over the existing chat SSE pipeline). - AgentAppGenerator + AgentAppGenerateResponseConverter - AgentAppGenerateEntity (agent_id + agent_config_snapshot_id) - console chat-messages: accept AppMode.AGENT; make model_config optional (Agent Apps derive model/prompt from the Soul, not an override config) - synthesize prompt_type=simple and NULL app_model_config_id so the conversation persists without a legacy app_model_config row Live-verified end-to-end against the real agent backend: single-turn, multi-turn resume (history preserved, session reused), and the runtime session row persists with owner_type=conversation and an intact snapshot (no "cleaned trap"). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>