MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _attach_chat_session

Function _attach_chat_session

deployments/desktop/shared/agents.py:4574–4586  ·  view source on GitHub ↗
(
    result: Dict[str, Any],
    *,
    user_id: str,
    session_id: str,
    question: str,
    persist_chat: bool,
)

Source from the content-addressed store, hash-verified

4572 )
4573 db_ops.save_chat_message(
4574 user_id=user_id,
4575 session_id=saved_session_id,
4576 role="assistant",
4577 content=str(result.get("text") or ""),
4578 metadata=_chat_turn_metadata(result),
4579 )
4580 result["session_id"] = saved_session_id
4581 return saved_session_id
4582
4583
4584def _attach_chat_session(
4585 result: Dict[str, Any],
4586 *,
4587 user_id: str,
4588 session_id: str,
4589 question: str,

Callers 2

wiki_askFunction · 0.85
wiki_ask_streamFunction · 0.85

Calls 1

_persist_chat_turnFunction · 0.85

Tested by

no test coverage detected