SurfSense/surfsense_backend/app/automations/actions/builtin/agent_task
CREDO23 28b13ed25b refactor(agents): move context schema + state reducers to app/agents/shared (slice 2)
Continue promoting the shared agent toolkit out of `new_chat` into the
cross-agent `app/agents/shared` kernel.

- state_reducers.py: clean move (no single-agent importer); all 7 importers
  flipped to app.agents.shared.state_reducers.
- context.py: moved to app.agents.shared.context; flipped the multi-agent,
  app, automations, chat-flows and monolith importers. A thin re-export shim
  remains at new_chat/context.py because the not-yet-retired single-agent
  (chat_deepagent) and the new_chat package __init__ still import it; the shim
  goes away with the single-agent deletion.
- Updated the stream parity test's annotation normalizer to strip the new
  app.agents.shared.context. prefix (SurfSenseContextSchema.__module__ changed
  with the move), keeping monolith<->flows signature parity intact.

Behavior-preserving: definitions unchanged; only import paths move. 1219 tests green.
2026-06-04 12:19:22 +02:00
..
__init__.py refactor(automations): move agent_task to builtin and restructure dispatch 2026-05-29 18:13:09 +02:00
auto_decide.py refactor(automations): move agent_task to builtin and restructure dispatch 2026-05-29 18:13:09 +02:00
definition.py refactor(automations): move agent_task to builtin and restructure dispatch 2026-05-29 18:13:09 +02:00
dependencies.py docs: clarify automation checkpointer TODO 2026-06-01 20:23:11 +02:00
factory.py refactor(automations): move agent_task to builtin and restructure dispatch 2026-05-29 18:13:09 +02:00
finalize.py refactor(automations): move agent_task to builtin and restructure dispatch 2026-05-29 18:13:09 +02:00
invoke.py refactor(agents): move context schema + state reducers to app/agents/shared (slice 2) 2026-06-04 12:19:22 +02:00
params.py refactor(automations): move agent_task to builtin and restructure dispatch 2026-05-29 18:13:09 +02:00