Skip to content

Commit bee1a30

Browse files
committed
Tweak assistant document page
1 parent d9ee954 commit bee1a30

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bolt/src/main/java/com/slack/api/bolt/request/builtin/EventRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public EventRequest(
146146
// message_changed
147147
this.getContext().setThreadTs(event.get("message").getAsJsonObject().get("thread_ts").getAsString());
148148
}
149-
// Assistant middleware can set threadContext using AssistantThreadContextStore
149+
// Assistant middleware can set threadContext using AssistantThreadContextService
150150
}
151151

152152
if (this.eventType != null && this.eventType.equals(FunctionExecutedEvent.TYPE_NAME)) {

docs/content/guides/assistants.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ assistant.userMessage((req, ctx) -> {
7171
app.assistant(assistant);
7272
```
7373

74-
While the `assistant_thread_started` and `assistant_thread_context_changed` events do provide Slack-client thread context information, the `message.im` event does not. Any subsequent user message events won't contain thread context data. For that reason, Bolt not only provides a way to store thread context — the `threadContextStore` property — but it also provides a `DefaultThreadContextStore` instance that is utilized by default. This implementation relies on storing and retrieving [message metadata](https://api.slack.com/metadata/using) as the user interacts with the assistant.
74+
While the `assistant_thread_started` and `assistant_thread_context_changed` events do provide Slack-client thread context information, the `message.im` event does not. Any subsequent user message events won't contain thread context data. For that reason, Bolt not only provides a way to store thread context — the `threadContextService` property — but it also provides a `DefaultAssistantThreadContextService` instance that is utilized by default. This implementation relies on storing and retrieving [message metadata](https://api.slack.com/metadata/using) as the user interacts with the assistant.
7575

76-
If you do provide your own `threadContextStore` property, it must feature `get` and `save` methods.
76+
If you do provide your own `threadContextService` property, it must feature `get` and `save` methods.
7777

7878
:::tip
7979
Be sure to give the [assistants reference docs](/reference#agents--assistants) a look!

0 commit comments

Comments
 (0)