-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first pass refinemetns to match the rest
- Loading branch information
Showing
8 changed files
with
87 additions
and
89 deletions.
There are no files selected for viewing
33 changes: 19 additions & 14 deletions
33
cdp-agentkit-core/cdp_agentkit_core/actions/social/twitter/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
from cdp_agentkit_core.actions.social.twitter.account_details import ( | ||
ACCOUNT_DETAILS_PROMPT as ACCOUNT_DETAILS_PROMPT, | ||
) | ||
from cdp_agentkit_core.actions.social.twitter.account_details import ( | ||
AccountDetailsInput as AccountDetailsInput, | ||
) | ||
from cdp_agentkit_core.actions.social.twitter.account_details import ( | ||
account_details as account_details, | ||
) | ||
from cdp_agentkit_core.actions.social.twitter.post_tweet import ( | ||
POST_TWEET_PROMPT as POST_TWEET_PROMPT, | ||
) | ||
from cdp_agentkit_core.actions.social.twitter.post_tweet import PostTweetInput as PostTweetInput | ||
from cdp_agentkit_core.actions.social.twitter.post_tweet import post_tweet as post_tweet | ||
from cdp_agentkit_core.actions.social.twitter.action import TwitterAction | ||
from cdp_agentkit_core.actions.social.twitter.account_details import AccountDetailsAction | ||
from cdp_agentkit_core.actions.social.twitter.post_tweet import PostTweetAction | ||
|
||
def get_all_twitter_actions() -> list[type[TwitterAction]]: | ||
actions = [] | ||
for action in TwitterAction.__subclasses__(): | ||
actions.append(action()) | ||
|
||
return actions | ||
|
||
TWITTER_ACTIONS = get_all_twitter_actions() | ||
|
||
__all__ = [ | ||
"TwitterAction", | ||
"AccountDetailsAction", | ||
"PostTweetAction", | ||
"TWITTER_ACTIONS", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
"""CDP Twitter Toolkit.""" | ||
|
||
from twitter_langchain.twitter_action import TwitterAction | ||
from twitter_langchain.twitter_api_wrapper import TwitterApiWrapper | ||
from twitter_langchain.twitter_tool import TwitterTool | ||
from twitter_langchain.twitter_toolkit import TwitterToolkit | ||
|
||
__all__ = [ | ||
"TwitterAction", | ||
"TwitterApiWrapper", | ||
"TwitterTool", | ||
"TwitterToolkit", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters