Repository navigation
Commit e55fa9f
committed
fix(sdk): propagate AI SDK 7 tool context to task-backed tools
On v7 the tool execution context is passed as `context` (v6 used
`experimental_context`). createTaskToolExecuteHandler only read
`experimental_context`, so task-backed tools (`ai.toolExecute`) lost
their context on v7. Read whichever is set and stamp both names into
the subtask metadata.1 parent cef4dd6 commit e55fa9f
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
| 135 | + | |
134 | 136 | | |
135 | 137 | | |
136 | 138 | | |
| |||
907 | 909 | | |
908 | 910 | | |
909 | 911 | | |
910 | | - | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
911 | 916 | | |
912 | | - | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
913 | 920 | | |
914 | 921 | | |
915 | 922 | | |
| |||
0 commit comments