Skip to content

feat(methods): add assistant.search.info method example - #399

Merged
zimeg merged 3 commits into
mainfrom
zimeg-feat-assistant-search-info-example
Nov 20, 2026
Merged

zimeg merged 3 commits into
mainfrom
zimeg-feat-assistant-search-info-example

Conversation

@zimeg

@zimeg zimeg commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

This pull request adds a method example for assistant.search.info in methods/src/assistant/search/assistant_search_info.py, and lists it in methods/README.md.

  • The method takes no arguments.
  • This layer adds the assistant/search/ app scaffold with a bot user and the search:read.public bot scope.

This is the first pull request in the assistant stack of method examples, and it's based on main. It's in the B1 assistant search batch.

  1. feat(methods): add assistant.search.info method example #399 assistant.search.info 👈 this pull request
  2. feat(methods): add assistant.search.context method example #406 assistant.search.context

Dependency

This depends on slackapi/python-slack-sdk#2053, which adds assistant.search.info to slack_sdk. It shipped in slack_sdk 3.48.0, which methods/pyproject.toml now pins.

Testing

With slackapi/python-slack-sdk#2053 installed locally:

  1. cd methods/src/assistant/search && slack install --environment local, then export SLACK_TOKEN=... with the app's bot token (search:read.public).
  2. slack run assistant_search_info.py and confirm the response has is_ai_search_enabled.

Live run: ok with is_ai_search_enabled: true. Each example was run live in a developer workspace with a local slack_sdk build that has every method from these stacks.

🤖 Generated with Claude Code

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg
zimeg force-pushed the zimeg-feat-assistant-search-info-example branch from 686f1c6 to c9e322f Compare November 18, 2026 06:17
@zimeg
zimeg changed the base branch from zimeg-feat-apps-managed-permissions-set-example to main November 18, 2026 06:17
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg
zimeg marked this pull request as ready for review November 20, 2026 10:01
@zimeg
zimeg requested a review from a team as a code owner November 20, 2026 10:01

@cchensh cchensh left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The call matches the released SDK (method, argument names and types), the structure matches the sibling examples, and CI is green.

@WilliamBergamin WilliamBergamin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📚 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 WilliamBergamin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 @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 💯

@mwbrooks mwbrooks left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Thanks @zimeg! A no-argument call makes a tidy first layer for setting up the new assistant/search app.

@zimeg

zimeg commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

🌟 Thanks for the kind reviews @cchensh, @mwbrooks and @WilliamBergamin!

@zimeg
zimeg merged commit 50541e3 into main Nov 20, 2026
16 checks passed
@zimeg
zimeg deleted the zimeg-feat-assistant-search-info-example branch November 20, 2026 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants