Commit 6ff0a71
refactor(agent-service): type ReActStep tool/message fields precisely
ReActStep used `unknown` for fields whose shapes we actually know:
- inputMessages -> ModelMessage[] (the prepared AI SDK messages)
- toolCalls[].input -> Record<string, unknown> (tool args are JSON objects)
- toolResults[].output -> string (every tool returns via createToolResult/createErrorResult)
The AI SDK types tc.input / tr.output as `unknown` for dynamically registered
tools, so narrow at the single construction boundary in texera-agent.ts.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 1882916 commit 6ff0a71
2 files changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
574 | 577 | | |
575 | 578 | | |
576 | 579 | | |
577 | | - | |
| 580 | + | |
578 | 581 | | |
579 | 582 | | |
580 | 583 | | |
581 | 584 | | |
582 | | - | |
| 585 | + | |
583 | 586 | | |
584 | 587 | | |
585 | 588 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | | - | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | | - | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
0 commit comments