-
Notifications
You must be signed in to change notification settings - Fork 17
feat: set loading states and stream responses #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
a00e5c1
df8b620
475139f
e1bc98a
291ef2d
a8389b1
42cf39f
2acdaf4
5bf3bf4
bfd4649
530052f
905f4fb
0a97ef9
b797fdd
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -72,7 +72,15 @@ black . | |||||||||||||||
|
|
||||||||||||||||
| ### `/listeners` | ||||||||||||||||
|
|
||||||||||||||||
| Every incoming request is routed to a "listener". Inside this directory, we group each listener based on the Slack Platform feature used, so `/listeners/events` handles incoming events, `/listeners/shortcuts` would handle incoming [Shortcuts](https://api.slack.com/interactivity/shortcuts) requests, and so on. | ||||||||||||||||
| Every incoming request is routed to a "listener". Inside this directory, we group each listener based on the Slack Platform feature used, so `/listeners/events` handles incoming events like messages sent to the app. | ||||||||||||||||
|
|
||||||||||||||||
| **Note**: The `listeners/events` folder is purely educational and demonstrates alternative implementation approaches. These listeners are **not registered** and are not used in the actual application. For the working implementation, refer to `listeners/assistant.py`. | ||||||||||||||||
|
|
||||||||||||||||
|
Comment on lines
+76
to
+79
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
this makes it look like a little callout card on the docs! anytime i think about using "note:" i just replace it with a callout card.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📝 note: Added in 42cf39f.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🗣️ thought: I'm not sure that this renders as expected with GitHub markdown? 🔗 https://github.com/srtaalej/bolt-python-assistant-template/tree/main?tab=readme-ov-file#listeners We might want to revert this or use different syntax?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah idk why i suggested to use docs syntax in a README i think i got confused where i was oof |
||||||||||||||||
| **`/listeners/assistant`** | ||||||||||||||||
|
zimeg marked this conversation as resolved.
|
||||||||||||||||
|
|
||||||||||||||||
| Configures the new Slack Assistant features, providing a dedicated side panel UI for users to interact with the AI chatbot. This includes: | ||||||||||||||||
| * `@assistant.thread_started` - Manages when users start new assistant threads. | ||||||||||||||||
|
srtaalej marked this conversation as resolved.
Outdated
|
||||||||||||||||
| * `@assistant.user_message` - Processes user messages in assistant threads and app DMs. **Replaces traditional DM handling as seen in** `/listeners/events/user_message.py` | ||||||||||||||||
|
srtaalej marked this conversation as resolved.
Outdated
|
||||||||||||||||
|
|
||||||||||||||||
| ## App Distribution / OAuth | ||||||||||||||||
|
|
||||||||||||||||
|
|
||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.