Repository navigation
feat(methods): add assistant.search.info method example - #399
Conversation
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
686f1c6 to
c9e322f
Compare
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
cchensh
left a comment
There was a problem hiding this comment.
LGTM. The call matches the released SDK (method, argument names and types), the structure matches the sibling examples, and CI is green.
WilliamBergamin
left a comment
There was a problem hiding this comment.
📚 Thanks @zimeg! The new assistant/search project matches its siblings file for file, and the search:read.public bot scope is exactly what the reference asks for.
Left one comment, nothing blocking 💯
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com> # Conflicts: # methods/README.md
WilliamBergamin
left a comment
There was a problem hiding this comment.
📝 @zimeg thanks! Re-checked after the merge from main: the example and manifest are unchanged, and lint, format, and mypy still pass on methods. My earlier note about the narrating comments is still optional, nothing blocking 💯
|
🌟 Thanks for the kind reviews @cchensh, @mwbrooks and @WilliamBergamin! |
Summary
This pull request adds a method example for
assistant.search.infoinmethods/src/assistant/search/assistant_search_info.py, and lists it inmethods/README.md.assistant/search/app scaffold with a bot user and thesearch:read.publicbot scope.This is the first pull request in the
assistantstack of method examples, and it's based onmain. It's in the B1 assistant search batch.assistant.search.info👈 this pull requestassistant.search.contextDependency
This depends on slackapi/python-slack-sdk#2053, which adds
assistant.search.infotoslack_sdk. It shipped inslack_sdk3.48.0, whichmethods/pyproject.tomlnow pins.Testing
With slackapi/python-slack-sdk#2053 installed locally:
cd methods/src/assistant/search && slack install --environment local, thenexport SLACK_TOKEN=...with the app's bot token (search:read.public).slack run assistant_search_info.pyand confirm the response hasis_ai_search_enabled.Live run:
okwithis_ai_search_enabled: true. Each example was run live in a developer workspace with a localslack_sdkbuild that has every method from these stacks.🤖 Generated with Claude Code