Skip to content

Commit

Permalink
minor changes made
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarraann committed Jun 30, 2023
1 parent ccb1bf1 commit 32eaf20
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions superagi/tools/twitter/send_tweets.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
class SendTweetsInput(BaseModel):
tweet_text: str = Field(..., description="Tweet text to be posted from twitter handle, if no value is given keep the default value as 'None'")
is_media: bool = Field(..., description="'True' if there is any media to be posted with Tweet else 'False'.")
media_num: int = Field(..., description="Integer value for the number of media files to be uploaded, default value is 0")
media_files: list = Field(..., description="Name of the media files to be uploaded.")

class SendTweetsTool(BaseTool):
Expand All @@ -20,7 +19,7 @@ class SendTweetsTool(BaseTool):
description: str = "Send and Schedule Tweets for your Twitter Handle"
agent_id: int = None

def _execute(self, is_media: bool, tweet_text: str = 'None', media_num: int = 0, media_files: list = []):
def _execute(self, is_media: bool, tweet_text: str = 'None', media_files: list = []):
toolkit_id = self.toolkit_config.toolkit_id
session = self.toolkit_config.session
creds = TwitterTokens(session).get_twitter_creds(toolkit_id)
Expand Down

0 comments on commit 32eaf20

Please sign in to comment.