Skip to content

refactor: extract setup factories from TaskManager#527

Draft
san0808 wants to merge 1 commit intomasterfrom
refactor/task-manager-setup-factories
Draft

refactor: extract setup factories from TaskManager#527
san0808 wants to merge 1 commit intomasterfrom
refactor/task-manager-setup-factories

Conversation

@san0808
Copy link
Contributor

@san0808 san0808 commented Feb 28, 2026

Summary

  • Moves 7 setup/init methods from TaskManager into standalone functions in setup_factories.py
  • Adds TaskType enum to bolna/enums.py, replaces all raw string comparisons
  • DRYs repeated kwargs injection in get_agent_object with _inject_kwargs_into_config helper
  • Converts __is_multiagent, __is_knowledgebase_agent, __is_graph_agent from double-underscore (name-mangled) to single-underscore (accessible from extracted code)
  • Thin delegation stubs on TaskManager preserve internal call-sites

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant