(system_prompt, user_text, max_new_tokens=512, **kwargs)
| 205 | captured = {} |
| 206 | |
| 207 | def fake_local(system_prompt, user_text, max_new_tokens=512, **kwargs): |
| 208 | captured["system_prompt"] = system_prompt |
| 209 | captured["user_text"] = user_text |
| 210 | captured["max_new_tokens"] = max_new_tokens |
| 211 | return { |
| 212 | "action": "adjust_interest", |
| 213 | "direction": "decrease", |
| 214 | "topics": ["GUI Agent"], |
| 215 | "confidence": 0.93, |
| 216 | "reasoning": "matched explicit negation", |
| 217 | } |
| 218 | |
| 219 | monkeypatch.setattr(llm_parser, "_generate_json_with_local_llm", fake_local) |
| 220 | monkeypatch.setattr(llm_parser, "_generate_json_with_openai", lambda *args, **kwargs: None) |
nothing calls this directly
no outgoing calls
no test coverage detected