Skip to content

Commit

Permalink
Merge pull request #105 from Mikey-03/removed unused code
Browse files Browse the repository at this point in the history
removed unused code
  • Loading branch information
anubrag authored Jan 7, 2024
2 parents a41151c + 2a4fa83 commit 8917238
Showing 1 changed file with 0 additions and 46 deletions.
46 changes: 0 additions & 46 deletions nextpy/ai/tools/toolkits/slack_toolkit/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,49 +64,3 @@ def get_tools(self) -> List[BaseTool]:
),
]


# class SlackToolkit(BaseToolkit):
# """Slack toolkit."""

# reader: Optional[SlackReader] = Field(None)

# class Config:
# arbitrary_types_allowed = True

# def __init__(
# self,
# slack_token: Optional[str] = None,
# ssl: Optional[SSLContext] = None,
# earliest_date: Optional[datetime] = None,
# latest_date: Optional[datetime] = None,
# ) -> None:
# """Initialize with parameters."""
# self.reader: Optional[SlackReader] = None
# self.reader = SlackReader(
# slack_token=slack_token,
# ssl=ssl,
# earliest_date=earliest_date,
# latest_date=latest_date,
# )


# class SlackToolkit(BaseToolkit):
# """Slack toolkit."""

# reader: Optional[SlackReader] = Field(None)
# slack_token: Optional[str] = Field(None)
# ssl: Optional[SSLContext] = Field(None)
# earliest_date: Optional[datetime] = Field(None)
# latest_date: Optional[datetime] = Field(None)

# class Config:
# arbitrary_types_allowed = True

# @pydantic.validator('reader', pre=True, always=True)
# def set_reader(cls, v, values):
# return SlackReader(
# slack_token=values.get('slack_token'),
# ssl=values.get('ssl'),
# earliest_date=values.get('earliest_date'),
# latest_date=values.get('latest_date'),
# )

0 comments on commit 8917238

Please sign in to comment.