Commit cf05e0d
committed
feat(chat): expose finishReason on turn-complete events
Surface the AI SDK's FinishReason on TurnCompleteEvent and
BeforeTurnCompleteEvent. Gives hooks a clean signal for distinguishing
a normal turn end from one paused on a pending tool call (HITL flows
like ask_user). Undefined for manual pipeChat() or aborted streams.1 parent dd94073 commit cf05e0d
File tree
3 files changed
+58
-1
lines changed- .changeset
- packages/trigger-sdk
- src/v3
- test
3 files changed
+58
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
2211 | 2212 | | |
2212 | 2213 | | |
2213 | 2214 | | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
| 2229 | + | |
| 2230 | + | |
2214 | 2231 | | |
2215 | 2232 | | |
2216 | 2233 | | |
| |||
3582 | 3599 | | |
3583 | 3600 | | |
3584 | 3601 | | |
| 3602 | + | |
3585 | 3603 | | |
3586 | 3604 | | |
3587 | 3605 | | |
| |||
3647 | 3665 | | |
3648 | 3666 | | |
3649 | 3667 | | |
3650 | | - | |
| 3668 | + | |
| 3669 | + | |
| 3670 | + | |
| 3671 | + | |
| 3672 | + | |
| 3673 | + | |
| 3674 | + | |
3651 | 3675 | | |
| 3676 | + | |
3652 | 3677 | | |
3653 | 3678 | | |
3654 | 3679 | | |
| |||
4012 | 4037 | | |
4013 | 4038 | | |
4014 | 4039 | | |
| 4040 | + | |
4015 | 4041 | | |
4016 | 4042 | | |
4017 | 4043 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
239 | 265 | | |
240 | 266 | | |
241 | 267 | | |
| |||
0 commit comments