Skip to content

Commit

Permalink
Add missing llm in slack_agent
Browse files Browse the repository at this point in the history
  • Loading branch information
ashish-spext committed Oct 28, 2024
1 parent 6c450bc commit ffb2e41
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 ffb2e41

Please sign in to comment.