Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix(agenton): use AsyncGenerator return annotation for asynccontextmanager (#36361)
arya rizkya13ab760027a
diff --git a/dify-agent/src/agenton/compositor/core.py b/dify-agent/src/agenton/compositor/core.pyindex 355b143356a..4e77e9c1e09 100644--- a/dify-agent/src/agenton/compositor/core.py+++ b/dify-agent/src/agenton/compositor/core.py@@ -14,7 +14,7 @@ hydrated deterministically."""from collections import OrderedDict-from collections.abc import AsyncIterator, Mapping, Sequence+from collections.abc import AsyncGenerator, Mapping, Sequencefrom contextlib import asynccontextmanagerfrom dataclasses import dataclassfrom typing import Any, Generic, cast@@ -178,7 +178,7 @@ class Compositor(Generic[PromptT, ToolT, LayerPromptT, LayerToolT, UserPromptT,*,configs: Mapping[str, LayerConfigInput] | None = None,session_snapshot: CompositorSessionSnapshotValue | None = None,- ) -> AsyncIterator[CompositorRun[PromptT, ToolT, LayerPromptT, LayerToolT, UserPromptT, LayerUserPromptT]]:+ ) -> AsyncGenerator[CompositorRun[PromptT, ToolT, LayerPromptT, LayerToolT, UserPromptT, LayerUserPromptT]]:"""Create a fresh run, enter layers in graph order, and yield it.Configs are keyed by layer node name and validated before factories run.