Skip to content

Commit 0636741

Browse files
committed
chore: update documentation in generate-response.ts regarding Slack button usage
- Clarified that URLs cannot be embedded in Slack button elements, emphasizing the use of markdown links instead. This improves user understanding of Slack's capabilities and limitations. - Reformatted the tool reference section for better readability and organization.
1 parent 87e4fe3 commit 0636741

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/generate-response.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ Slack
832832
- Fetch thread context before heavy actions (getSlackThread/getSlackChannelHistory).
833833
- Reactions are for quick acks/status and keep things fun. Use them liberally, and try to use diverse reactions to keep things interesting.
834834
- Always use slack interactive buttons when asking the user questions or for confirmation where possible. This creates a much better user experience.
835-
- You can embed urls into button elements in the blocks array. Do this if you need to provide urls to anything. This can be done by adding a url property to the button object. If you have a url on a button and the user clicks it, you will still receive an event to respond to. If you do not need to respond if the user clicks the button, then you can safely not reply to the button click event.
835+
- You cannot embed urls in button elements in slack messages. You can only use markdown links. Buttons are always for interactive elements with you.
836836
837837
GitHub
838838
- Read before you reason (getFileContent, getPullRequest, getPullRequestFiles).
@@ -882,12 +882,12 @@ Output style
882882
- You use markdown in Linear and Slack blocks in Slack, use both to format your responses well.
883883
- End with a single next step if ambiguity remains.
884884
885-
Tool reference (call by exact names)
886-
- Slack: sendRichSlackMessage, sendRichChannelMessage, sendRichDirectMessage, addSlackReaction, removeSlackReaction, getSlackChannelHistory, getSlackThread, updateSlackMessage, deleteSlackMessage, createFormattedSlackMessage, respondToSlackInteraction
887-
- GitHub: getFileContent, createPullRequest, getPullRequest, getPullRequestFiles, addPullRequestComment, githubCreateIssue, githubGetIssue, githubListIssues, githubAddIssueComment, githubUpdateIssue, githubGetIssueComments, getDirectoryStructure, searchEmbeddedCode
888-
- Linear: getIssueContext, updateIssueStatus, addLabel, removeLabel, assignIssue, createIssue, addIssueAttachment, updateIssuePriority, setPointEstimate, getLinearTeams, getLinearProjects, getLinearInitiatives, getLinearUsers, getLinearRecentIssues, searchLinearIssues, getLinearWorkflowStates, createLinearComment, createAgentActivity, setIssueParent, addIssueToProject
889-
- Exa: exaSearch, exaCrawlContent, exaFindSimilar
890-
- Utility: sleep
885+
Tool reference (call by exact names)
886+
- Slack: sendRichSlackMessage, sendRichChannelMessage, sendRichDirectMessage, addSlackReaction, removeSlackReaction, getSlackChannelHistory, getSlackThread, updateSlackMessage, deleteSlackMessage, createFormattedSlackMessage, respondToSlackInteraction
887+
- GitHub: getFileContent, createPullRequest, getPullRequest, getPullRequestFiles, addPullRequestComment, githubCreateIssue, githubGetIssue, githubListIssues, githubAddIssueComment, githubUpdateIssue, githubGetIssueComments, getDirectoryStructure, searchEmbeddedCode
888+
- Linear: getIssueContext, updateIssueStatus, addLabel, removeLabel, assignIssue, createIssue, addIssueAttachment, updateIssuePriority, setPointEstimate, getLinearTeams, getLinearProjects, getLinearInitiatives, getLinearUsers, getLinearRecentIssues, searchLinearIssues, getLinearWorkflowStates, createLinearComment, createAgentActivity, setIssueParent, addIssueToProject
889+
- Exa: exaSearch, exaCrawlContent, exaFindSimilar
890+
- Utility: sleep
891891
892892
Context snapshot
893893
${repositoryContext ? `${repositoryContext}` : ''}${

0 commit comments

Comments
 (0)