(system_prompt, user_text, max_tokens=500, timeout_override=None, **kwargs)
| 394 | captured = {} |
| 395 | |
| 396 | def fake_generate(system_prompt, user_text, max_tokens=500, timeout_override=None, **kwargs): |
| 397 | captured["system_prompt"] = system_prompt |
| 398 | captured["user_text"] = user_text |
| 399 | return { |
| 400 | "one_sentence_summary": "This paper proposes a robust planner.", |
| 401 | "research_background": "The paper studies robust research planning.", |
| 402 | "core_method": "It uses a two-stage planner.", |
| 403 | "key_results": "The method improves planning quality.", |
| 404 | "main_contributions": ["A two-stage planning framework"], |
| 405 | "limitations": ["More cross-domain evaluation is needed"], |
| 406 | "relevance_points": ["Relevant to research agents"], |
| 407 | "reading_focus": ["Read the method and experiments first"], |
| 408 | "recommendation_label": "推荐阅读", |
| 409 | } |
| 410 | |
| 411 | monkeypatch.setattr(llm_parser, "_generate_json_with_configured_llm", fake_generate) |
| 412 |
nothing calls this directly
no outgoing calls
no test coverage detected