Skip to content

Commit

Permalink
Merge pull request #23 from video-db/slack-fix
Browse files Browse the repository at this point in the history
Add missing llm in slack_agent
  • Loading branch information
ashish-spext authored Oct 28, 2024
2 parents 6c450bc + ffb2e41 commit 44a5eb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/spielberg/agents/slack_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
RoleTypes,
)
from spielberg.tools.slack import send_message_to_channel
from spielberg.llm.openai import OpenAI
from spielberg.llm.base import LLMResponseStatus

logger = logging.getLogger(__name__)
Expand All @@ -28,6 +29,7 @@ def __init__(self, session: Session, **kwargs):
self.agent_name = "slack"
self.description = "Messages to a Slack channel"
self.parameters = self.get_parameters()
self.llm = OpenAI()
super().__init__(session=session, **kwargs)

def run(self, message: str, *args, **kwargs) -> AgentResponse:
Expand Down

0 comments on commit 44a5eb7

Please sign in to comment.