mirror of
https://github.com/langgenius/dify.git
synced 2026-06-08 09:27:39 +08:00
* ``AgentBackendRunRequestBuilder.build_for_agent_app`` + the ``AgentBackendAgentAppRunInput`` DTO: the app-shaped layer graph (agent soul system prompt → user message → execution context → history → llm → optional plugin tools → optional output), purpose=agent_app, on_exit=suspend. No workflow-node-job / previous-node prompt. * ``AgentAppRuntimeRequestBuilder`` maps an Agent Soul snapshot + conversation turn into a CreateRunRequest: plugin-daemon plugin_id/provider normalization, credential fetch + scalar normalization, Dify plugin tools (reuses WorkflowAgentPluginToolsBuilder), conversation-scoped execution_context with invoke_from=agent_app, and the prior session_snapshot for multi-turn. Tests: 5 builder/DTO cases + reuses the conversation session store; 40 passing across agent_backend + agent_app suites. ruff + pyrefly clean. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>