Skip to content

feat: replace assistant handlers with agent argument methods#51

Open
zimeg wants to merge 2 commits intofeat-agent-argumentfrom
zimeg-feat-agent-set-suggested-prompts
Open

feat: replace assistant handlers with agent argument methods#51
zimeg wants to merge 2 commits intofeat-agent-argumentfrom
zimeg-feat-agent-set-suggested-prompts

Conversation

@zimeg
Copy link
Member

@zimeg zimeg commented Feb 16, 2026

Type of change

  • New feature

Summary

This PR replaces set_suggested_prompts and set_status methods from assistant handlers with the "agent" argument methods 🤖

Tested with the following PRs built:

Requirements

  • I have ensured the changes I am contributing align with existing patterns and have tested and linted my code
  • I've read and agree to the Code of Conduct

@zimeg zimeg requested review from mwbrooks and srtaalej February 16, 2026 20:18
@zimeg zimeg self-assigned this Feb 16, 2026
@zimeg zimeg added the enhancement New feature or request label Feb 16, 2026
@zimeg zimeg requested a review from a team as a code owner February 16, 2026 20:18
Copy link
Contributor

@srtaalej srtaalej left a comment

Choose a reason for hiding this comment

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

looks amazing 🤩 !

from logging import Logger

from slack_bolt import Say, SetSuggestedPrompts
from slack_bolt import BoltAgent, Say
Copy link
Contributor

Choose a reason for hiding this comment

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

🤩

Comment on lines 26 to 30
agent: BoltAgent for making API calls
client: Slack WebClient for making API calls
context: Bolt context containing channel and thread information
logger: Logger instance for error tracking
payload: Event payload with message details (channel, user, text, etc.)
message: Dictionary with message information
say: Function to send messages to the thread
set_status: Function to update the assistant's status
"""
Copy link
Contributor

Choose a reason for hiding this comment

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

this diff omg 🤩

Copy link
Member

@mwbrooks mwbrooks left a comment

Choose a reason for hiding this comment

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

Thanks for showcases how the agent argument methods may look in the Assistant sample app! 🙇🏻

However, let's hold off on merging this. The agent is an under-developer, experimental feature that's unreleased. We don't want to be adding to our main assistant/agent sample app right now.

If this sounds good to you, we can close this PR without merging 📕

Edit: Just noticed that you're merging into feat-agent-argument. I suppose that's fine if you want to merge it, but I was going to delete that branch today. It was only intended to showcase a working example to test the argent argument PR.

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants