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

Function fake_answer_question_stream

tests/test_desktop_gui.py:815–819  ·  view source on GitHub ↗
(user_id, question, *, limit=8, pinned_nodes=None, **_kwargs)

Source from the content-addressed store, hash-verified

813 monkeypatch.setattr(agents, "_daily_note_reading_entries", lambda **_kwargs: [daily_entry])
814
815 def fake_answer_question_stream(user_id, question, *, limit=8, pinned_nodes=None, **_kwargs):
816 captured["pinned_nodes"] = pinned_nodes or []
817 yield {"event": "meta", "data": {"citations": [], "streaming": {"provider": True, "transport": "sse"}}}
818 yield {"event": "chunk", "data": {"text": "趋势摘要"}}
819 yield {"event": "done", "data": {"text": "趋势摘要", "citations": [], "streaming": {"provider": True, "transport": "sse"}}}
820
821 monkeypatch.setattr(agents.wiki_answer, "answer_question_stream", fake_answer_question_stream)
822

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected