Commit 1050d05
fix: use plain messages for result selection and query refinement
The tool-call message pattern was causing some models to emit tool-call
markup as text content instead of answering the prompt. This happened
because the conversation history (assistant→tool_call→tool→response)
primed the model to continue the tool-calling pattern.
Only the essay synthesis call needs tool-call isolation (it receives raw
untrusted web page content). Result selection and query refinement only
receive search metadata (titles, snippets, URLs) generated by Artemis.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent e7daa54 commit 1050d05
1 file changed
+17
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
249 | 252 | | |
250 | 253 | | |
251 | 254 | | |
252 | 255 | | |
253 | 256 | | |
254 | 257 | | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
260 | 262 | | |
261 | 263 | | |
262 | 264 | | |
| |||
745 | 747 | | |
746 | 748 | | |
747 | 749 | | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
748 | 753 | | |
749 | 754 | | |
750 | 755 | | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | | - | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
756 | 760 | | |
757 | 761 | | |
758 | 762 | | |
| |||
782 | 786 | | |
783 | 787 | | |
784 | 788 | | |
| 789 | + | |
| 790 | + | |
785 | 791 | | |
786 | 792 | | |
787 | 793 | | |
| |||
0 commit comments