Skip to content

Commit 6ab8795

Browse files
committed
refactor: move 'ai' features to an 'agent' directory
1 parent ac2816f commit 6ab8795

File tree

6 files changed

+4
-4
lines changed

6 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Configures the new Slack Assistant features, providing a dedicated side panel UI
150150
- The `assistant_thread_started.py` file, which responds to new app threads with a list of suggested prompts.
151151
- The `message.py` file, which responds to user messages sent to app threads or from the **Chat** and **History** tab with an LLM generated response.
152152

153-
### `/ai`
153+
### `/agent`
154154

155155
The `llm_caller.py` file calls the OpenAI API and streams the generated response into a Slack conversation.
156156

ai/llm_caller.py renamed to agent/llm_caller.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from slack_sdk.models.messages.chunk import TaskUpdateChunk
77
from slack_sdk.web.chat_stream import ChatStream
88

9-
from ai.tools.dice import roll_dice, roll_dice_definition
9+
from agent.tools.dice import roll_dice, roll_dice_definition
1010

1111

1212
def call_llm(
File renamed without changes.

listeners/assistant/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
TaskUpdateChunk,
1111
)
1212

13-
from ai.llm_caller import call_llm
13+
from agent.llm_caller import call_llm
1414
from listeners.views.feedback_block import create_feedback_block
1515

1616

listeners/events/app_mentioned.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from slack_bolt import Say
55
from slack_sdk import WebClient
66

7-
from ai.llm_caller import call_llm
7+
from agent.llm_caller import call_llm
88
from listeners.views.feedback_block import create_feedback_block
99

1010

0 commit comments

Comments
 (0)