mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-07 23:02:39 +02:00
feat(chat): add multi-agent mode routing scaffold and telemetry.
This commit is contained in:
parent
78f71c7e3a
commit
7b9a218d62
13 changed files with 742 additions and 58 deletions
24
surfsense_backend/app/agents/multi_agent_v1/entrypoint.py
Normal file
24
surfsense_backend/app/agents/multi_agent_v1/entrypoint.py
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
"""Multi-agent v1 entrypoint scaffold with safe fallback behavior."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from collections.abc import AsyncGenerator, Callable
|
||||
from typing import Any
|
||||
|
||||
|
||||
class MultiAgentEntrypoint:
|
||||
def stream_new_chat(
|
||||
self,
|
||||
*,
|
||||
fallback_streamer: Callable[..., AsyncGenerator[str, None]],
|
||||
fallback_kwargs: dict[str, Any],
|
||||
) -> AsyncGenerator[str, None]:
|
||||
return fallback_streamer(**fallback_kwargs)
|
||||
|
||||
def stream_resume_chat(
|
||||
self,
|
||||
*,
|
||||
fallback_streamer: Callable[..., AsyncGenerator[str, None]],
|
||||
fallback_kwargs: dict[str, Any],
|
||||
) -> AsyncGenerator[str, None]:
|
||||
return fallback_streamer(**fallback_kwargs)
|
||||
Loading…
Add table
Add a link
Reference in a new issue