Skip to content

feat: add assistant.search.info method - #2053

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

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

Conversation

@zimeg

@zimeg zimeg commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

This pull request adds the assistant.search.info method to the Web API clients.

  • assistant_search_info takes no arguments and returns is_ai_search_enabled, which is true when semantic search is possible on the team.
  • The async and legacy clients are regenerated with scripts/codegen.py, and the method is added to the Web API coverage test.

This pairs with #1667, which adds assistant.search.context to complete the assistant search methods. The two methods sit next to each other in the sorted lists, so once #1667 merges, this branch resolves the adjacent-line conflict.

This is the only pull request in the assistant stack, so it's based on main. It's in the B1 assistant search batch. Related to #2014.

  1. feat: add assistant.search.info method #2053 assistant.search.info 👈 this pull request

Testing

With a bot or user token that has the search:read.public scope:

  1. Call client.assistant_search_info() and confirm the response has is_ai_search_enabled.
  2. Repeat with AsyncWebClient to check the generated async method.

Live check: a bot token and a user token both return ok with is_ai_search_enabled: true. These calls ran in a developer workspace.

Category

  • slack_sdk.web.WebClient (sync/async) (Web API client)
  • slack_sdk.webhook.WebhookClient (sync/async) (Incoming Webhook, response_url sender)
  • slack_sdk.socket_mode (Socket Mode client)
  • slack_sdk.signature (Request Signature Verifier)
  • slack_sdk.oauth (OAuth Flow Utilities)
  • slack_sdk.models (UI component builders)
  • slack_sdk.scim (SCIM API client)
  • slack_sdk.audit_logs (Audit Logs API client)
  • slack_sdk.rtm_v2 (RTM client)
  • /docs (Documents)
  • /tutorial (PythOnBoardingBot tutorial)
  • tests/integration_tests (Automated tests for this library)

Requirements

  • I've read and understood the Contributing Guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I have signed the Salesforce CLA (required before your PR can be reviewed or merged).
  • I've run python3 -m venv .venv && source .venv/bin/activate && ./scripts/run_validation.sh after making the changes.

🤖 Generated with Claude Code

@codecov

codecov Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.67%. Comparing base (b935494) to head (9176a71).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2053   +/-   ##
=======================================
  Coverage   84.66%   84.67%           
=======================================
  Files         118      118           
  Lines       14113    14119    +6     
=======================================
+ Hits        11949    11955    +6     
  Misses       2164     2164           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg
zimeg force-pushed the zimeg-feat-assistant-search-info branch from 14f3c0b to 916102a Compare November 18, 2026 06:15
@zimeg
zimeg changed the base branch from zimeg-feat-apps-managed-permissions-set to main November 18, 2026 06:15
…search-info

Co-Authored-By: Claude <svc-devxp-claude@slack-corp.com>
@zimeg
zimeg marked this pull request as ready for review November 19, 2026 04:46
@zimeg
zimeg requested a review from a team as a code owner November 19, 2026 04:46
…search-info

# Conflicts:
#	slack_sdk/web/async_client.py
#	slack_sdk/web/client.py
#	slack_sdk/web/legacy_client.py

@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

@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 no-argument method matches the spec exactly and sits right beside assistant_search_context, so the search pair reads as one.
One optional comment on the test file, nothing blocking 🚀

Comment thread slack_sdk/web/client.py
kwargs.update({"term_clauses": json.dumps(term_clauses)})
return self.api_call("assistant.search.context", params=kwargs)

def assistant_search_info(

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.

💯 praise: Same no-argument pass-through shape as auth_test, and it matches the docs.slack.dev page (token only, POST). Codegen leaves the async and legacy copies unchanged.

@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! With assistant_search_info next to assistant_search_context, the assistant search pair is complete in Python.

@zimeg

zimeg commented Nov 19, 2026

Copy link
Copy Markdown
Member Author

🌟 Thanks for the kind reviews @mwbrooks and @cchensh! The assistant search pair is complete in Python now 🔍

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

Labels

enhancement M-T: A feature request for new functionality semver:minor web-client

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants