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 "body": "\n".join(part for part in body_parts if part),
4573 "keywords": " ".join([title, category or "", " ".join(subjects), "recent trend daily push"]).strip(),
4574 "file_path": "",
4575 "metadata": {
4576 "paper_id": paper.get("id"),
4577 "arxiv_id": arxiv_id,
4578 "doi": paper.get("doi"),
4579 "authors": authors,
4580 "subjects": subjects,
4581 "url": paper.get("url") or paper.get("abs_url") or "",
4582 "pdf_url": paper.get("pdf_url") or "",
4583 "push_id": push_id,
4584 "rank": rank,
4585 "score": score,
4586 "category": category,
4587 "source": "recent_daily_push",
4588 },
4589 "score": _to_float(score, 1.0),

Callers 2

wiki_askFunction · 0.85
wiki_ask_streamFunction · 0.85

Calls 1

_persist_chat_turnFunction · 0.85

Tested by

no test coverage detected