Commit fd68645
fix(docs): correct BetaAsyncAbstractMemoryTool docstring for async usage
The docstring example for BetaAsyncAbstractMemoryTool was copy-pasted from
the synchronous BetaAbstractMemoryTool class without being updated for async
usage, causing TypeError when following the example verbatim.
Changes:
- Use BetaAsyncAbstractMemoryTool as base class (was BetaAbstractMemoryTool)
- Use async def for method definitions (was sync def)
- Use AsyncAnthropic client (was Anthropic)
- Add await to the run_tools call
Fixes #1290
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent d7c0974 commit fd68645
1 file changed
+8
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
| 160 | + | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
| 163 | + | |
163 | 164 | | |
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
169 | | - | |
170 | | - | |
| 170 | + | |
| 171 | + | |
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
174 | | - | |
| 175 | + | |
175 | 176 | | |
176 | 177 | | |
177 | 178 | | |
178 | 179 | | |
179 | 180 | | |
180 | 181 | | |
181 | | - | |
| 182 | + | |
182 | 183 | | |
183 | | - | |
| 184 | + | |
184 | 185 | | |
185 | 186 | | |
186 | 187 | | |
| |||
0 commit comments