docs: add guides for the Bolt JS agent features and sample apps#2855
docs: add guides for the Bolt JS agent features and sample apps#2855lukegalbraithrussell merged 6 commits intomainfrom
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2855 +/- ##
=======================================
Coverage 93.59% 93.59%
=======================================
Files 44 44
Lines 7855 7855
Branches 687 687
=======================================
Hits 7352 7352
Misses 498 498
Partials 5 5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
mwbrooks
left a comment
There was a problem hiding this comment.
✅ Looks great @lukegalbraithrussell!
🙇🏻 This is a boat load of documentation! It always makes me wonder how we can better support the docs team during the development of the features, rather than at release time 🤔
✏️ I left a few comments, but all non-blocking. I've also got a few action items to fix bits in the Sample Apps that I noticed while reading over the docs (I left comments on each).
| slack run app-oauth.js | ||
| ``` | ||
|
|
||
| 8. Click the install URL printed in the terminal to install the app to your workspace via OAuth. |
There was a problem hiding this comment.
suggestion: Perhaps we remove this. I think I removed this from the sample apps (I see it's still in the README.md though, so I'll need to fix that). However, I could also add it back to the sample apps if you think it's easier to explain in docs than opening the app, going to the app home page, and selecting the "Connect Slack MCP Server" link.
| const { channel_id: channelId, thread_ts: threadTs } = event.assistant_thread; | ||
|
|
||
| try { | ||
| await client.assistant.threads.setSuggestedPrompts({ |
There was a problem hiding this comment.
note: The docs are accurate, but this made me realize that I can probably update the sample apps to use setSuggestedPrompts as an event handler argument instead of using it off client.
| ```javascript title="agent/tools/check-github-status.js" | ||
| import { tool } from '@anthropic-ai/claude-agent-sdk'; | ||
|
|
||
| export const checkGitHubStatusTool = tool( |
There was a problem hiding this comment.
question: This is very cool! Have you tested this tool implementation? I'm curious how reliable it is at hitting and whether the agent uses the other status check tool or this one reliability?
If this is something valuable, we could consider including it in Casey but we'd need to make sure that there aren't rate-limits from fetching that JSON file.
| status: 'Thinking...', | ||
| loading_messages: ['Waking up...', 'Loading a witty response...'], | ||
| }); | ||
| const stream = sayStream({ buffer_size: 100 }); |
There was a problem hiding this comment.
nit: We use the param buffer_size here, but I don't see it documented in the Parameter/Value table above.
Co-authored-by: Michael Brooks <mbrooks@slack-corp.com>
Summary
Bolt for JS docs (copied from python)
adding agent features (new) - also now has a section on the MCP server
Using the Assistant class - pull out assistant class stuff into separate page
Requirements