Commit f3efc30
feat: add document_query_llm config to agent-map operation (#5108)
## Summary
- Adds a new optional `document_query_llm` field to the
`AgentMapOperation` API request, allowing users to specify which LLM the
`QueryDocumentLLM` (QDLLM) tool uses when scraping web pages
- Threads the field through `AgentQueryParams` →
`setup_agent_components` → `QueryDocumentLLM` constructor
- Fully backward-compatible: when not provided, QDLLM uses its existing
default (`DEFAULT_SMALL`)
## Test plan
- [ ] Verify agent-map works without `document_query_llm` (existing
behavior unchanged)
- [ ] Verify agent-map with `document_query_llm` set to a valid
`LLMEnumPublic` value uses the specified model for QDLLM
- [ ] Verify validation rejects invalid enum values
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sourced from commit f06e977f5c8ef0f88e9a54cad8fca39747735b981 parent f59f5b1 commit f3efc30
2 files changed
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
| |||
142 | 145 | | |
143 | 146 | | |
144 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
145 | 156 | | |
146 | 157 | | |
147 | 158 | | |
| |||
170 | 181 | | |
171 | 182 | | |
172 | 183 | | |
| 184 | + | |
| 185 | + | |
173 | 186 | | |
174 | 187 | | |
175 | 188 | | |
| |||
321 | 334 | | |
322 | 335 | | |
323 | 336 | | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
324 | 354 | | |
325 | 355 | | |
326 | 356 | | |
| |||
334 | 364 | | |
335 | 365 | | |
336 | 366 | | |
| 367 | + | |
337 | 368 | | |
338 | 369 | | |
339 | 370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| 292 | + | |
292 | 293 | | |
293 | 294 | | |
294 | 295 | | |
| |||
302 | 303 | | |
303 | 304 | | |
304 | 305 | | |
| 306 | + | |
305 | 307 | | |
306 | 308 | | |
307 | 309 | | |
| |||
320 | 322 | | |
321 | 323 | | |
322 | 324 | | |
| 325 | + | |
323 | 326 | | |
324 | 327 | | |
325 | 328 | | |
| |||
335 | 338 | | |
336 | 339 | | |
337 | 340 | | |
| 341 | + | |
338 | 342 | | |
339 | 343 | | |
340 | 344 | | |
| |||
352 | 356 | | |
353 | 357 | | |
354 | 358 | | |
| 359 | + | |
355 | 360 | | |
356 | 361 | | |
357 | 362 | | |
| |||
372 | 377 | | |
373 | 378 | | |
374 | 379 | | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
375 | 383 | | |
376 | 384 | | |
377 | 385 | | |
| |||
0 commit comments