Skip to content

Fix BetaAsyncAbstractMemoryTool docstring to use async examples#1336

Closed
Christian-Sidak wants to merge 1 commit intoanthropics:mainfrom
Christian-Sidak:fix/async-memory-tool-docstring-1290
Closed

Fix BetaAsyncAbstractMemoryTool docstring to use async examples#1336
Christian-Sidak wants to merge 1 commit intoanthropics:mainfrom
Christian-Sidak:fix/async-memory-tool-docstring-1290

Conversation

@Christian-Sidak
Copy link
Copy Markdown

Summary

The BetaAsyncAbstractMemoryTool docstring was copy-pasted from the sync BetaAbstractMemoryTool without updating for async usage. This fixes three errors in the example code:

  • Base class in example: BetaAbstractMemoryTool -> BetaAsyncAbstractMemoryTool
  • Method definitions: def -> async def
  • Client usage: Anthropic() -> AsyncAnthropic(), wrapped in async def main() / asyncio.run(main())

Fixes #1290

The docstring was copy-pasted from the sync BetaAbstractMemoryTool
without updating for async usage. This fixes:
- Base class: BetaAbstractMemoryTool -> BetaAsyncAbstractMemoryTool
- Method definitions: def -> async def
- Client: Anthropic() -> AsyncAnthropic()
- Wrap usage in async def main() / asyncio.run(main())

Fixes anthropics#1290
@Christian-Sidak Christian-Sidak requested a review from a team as a code owner April 6, 2026 04:00
@Christian-Sidak
Copy link
Copy Markdown
Author

Friendly bump -- let me know if anything needs changing.

1 similar comment
@Christian-Sidak
Copy link
Copy Markdown
Author

Friendly bump -- let me know if anything needs changing.

@Christian-Sidak
Copy link
Copy Markdown
Author

Closing due to inactivity. Happy to reopen if there's interest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BetaAsyncAbstractMemoryTool docstring contains sync-only example (copy-paste from sync class)

1 participant