Commit 9240394
fix: Resolve mypy lint errors
- Use isinstance(gen, ChatGeneration) to type-narrow in callback handler
- Declare model as Any to accommodate Runnable return type from bind_tools
- Fix bind_kwargs type annotation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 3110be6 commit 9240394
2 files changed
Lines changed: 8 additions & 5 deletions
File tree
- packages/ai-providers/server-ai-langchain/src/ldai_langchain
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
147 | | - | |
| 148 | + | |
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
| |||
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
144 | | - | |
| 143 | + | |
| 144 | + | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
146 | 149 | | |
147 | 150 | | |
148 | 151 | | |
| |||
215 | 218 | | |
216 | 219 | | |
217 | 220 | | |
218 | | - | |
| |||
0 commit comments