Skip to content

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

Merged
zimeg merged 7 commits into
mainfrom
zimeg-feat-assistant-search-examples-info
Nov 20, 2026
Merged

zimeg merged 7 commits into
mainfrom
zimeg-feat-assistant-search-examples-info

Conversation

@zimeg

@zimeg zimeg commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Summary

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

This is part 2 of 2 in a stack that adds the assistant.search method examples one at a time. Each pull request builds on the one before it and merges on its own, bottom to top.

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

Dependency

This depends on slackapi/java-slack-sdk#1594, which adds assistantSearchInfo to slack-api-client. It shipped in slack-api-client 1.56.0, which methods/pom.xml now pins.

Testing

With slackapi/java-slack-sdk#1594 installed locally (./scripts/install_local.sh) and the pin pointed at that snapshot:

  1. cd methods and export SLACK_TOKEN=... with the app's bot token.
  2. mvn compile exec:java -Dexec.mainClass=assistant.search.AssistantSearchInfo and check that the response is ok with is_ai_search_enabled.

This returned ok with both a bot and a user token.

🤖 Generated with Claude Code

zimeg and others added 2 commits November 18, 2026 18:41
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
zimeg and others added 4 commits November 20, 2026 01:49
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
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.

@zimeg
zimeg changed the base branch from zimeg-feat-assistant-search-examples-context to main November 20, 2026 14:42
@zimeg

zimeg commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

🌟 Thanks for the kind review @cchensh! search.info rounds out the pair nicely ☕

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

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants