Commit fd79481
authored
fix: properly type tool error content in getAITools (#781)
* fix: properly type tool error content in getAITools
* fix: cast result.content to fix TS18046 error
- Cast result.content to Array<{ type: string; text?: string }> | undefined
- Add additional null check for textContent.text
- Add changeset for patch release1 parent 99cbca0 commit fd79481
File tree
2 files changed
+14
-2
lines changed- .changeset
- packages/agents/src/mcp
2 files changed
+14
-2
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 | |
|---|---|---|---|
| |||
941 | 941 | | |
942 | 942 | | |
943 | 943 | | |
944 | | - | |
945 | | - | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
946 | 953 | | |
947 | 954 | | |
948 | 955 | | |
| |||
0 commit comments