We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab51aaa commit 3f08c09Copy full SHA for 3f08c09
dapr_agents/agents/components.py
@@ -101,6 +101,11 @@ def __init__(
101
)
102
bundle = DEFAULT_AGENT_WORKFLOW_BUNDLE
103
104
+ # I considered splitting into separate classes, but that would duplicate several lines
105
+ # of infrastructure code (pub/sub, state operations, registry mutations). The current design
106
+ # uses the Strategy Pattern to share infrastructure while maintaining type-safe schemas per
107
+ # agent/orchestrator type. The "complexity" is just 5 lines of bundle extraction vs maintaining
108
+ # duplicate codebases.
109
self._state_model_cls = bundle.state_model_cls
110
self._message_model_cls = bundle.message_model_cls
111
self._entry_factory = bundle.entry_factory
0 commit comments