intentkit 0.8.11__py3-none-any.whl → 0.8.12__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of intentkit might be problematic. Click here for more details.

Files changed (183) hide show
  1. intentkit/__init__.py +1 -1
  2. intentkit/abstracts/graph.py +4 -0
  3. intentkit/abstracts/skill.py +2 -140
  4. intentkit/clients/twitter.py +35 -28
  5. intentkit/core/agent.py +2 -374
  6. intentkit/core/asset.py +63 -16
  7. intentkit/core/engine.py +16 -7
  8. intentkit/core/scheduler.py +8 -8
  9. intentkit/models/agent.py +109 -94
  10. intentkit/models/agent_schema.json +6 -9
  11. intentkit/models/llm.csv +15 -12
  12. intentkit/models/skill.py +38 -40
  13. intentkit/skills/acolyt/__init__.py +2 -9
  14. intentkit/skills/acolyt/base.py +2 -5
  15. intentkit/skills/aixbt/__init__.py +2 -13
  16. intentkit/skills/aixbt/base.py +0 -4
  17. intentkit/skills/aixbt/projects.py +1 -2
  18. intentkit/skills/allora/__init__.py +2 -9
  19. intentkit/skills/allora/base.py +2 -5
  20. intentkit/skills/base.py +168 -27
  21. intentkit/skills/basename/__init__.py +1 -3
  22. intentkit/skills/carv/__init__.py +116 -121
  23. intentkit/skills/carv/base.py +184 -185
  24. intentkit/skills/casino/__init__.py +4 -15
  25. intentkit/skills/casino/base.py +0 -4
  26. intentkit/skills/casino/deck_draw.py +4 -6
  27. intentkit/skills/casino/deck_shuffle.py +5 -4
  28. intentkit/skills/casino/dice_roll.py +1 -2
  29. intentkit/skills/cdp/__init__.py +0 -5
  30. intentkit/skills/cdp/base.py +0 -4
  31. intentkit/skills/cdp/schema.json +1 -17
  32. intentkit/skills/chainlist/__init__.py +2 -7
  33. intentkit/skills/chainlist/base.py +0 -4
  34. intentkit/skills/common/__init__.py +2 -9
  35. intentkit/skills/common/base.py +0 -4
  36. intentkit/skills/cookiefun/__init__.py +6 -9
  37. intentkit/skills/cookiefun/base.py +0 -4
  38. intentkit/skills/cryptocompare/__init__.py +7 -24
  39. intentkit/skills/cryptocompare/base.py +4 -18
  40. intentkit/skills/cryptocompare/fetch_news.py +1 -1
  41. intentkit/skills/cryptocompare/fetch_price.py +1 -1
  42. intentkit/skills/cryptocompare/fetch_top_exchanges.py +1 -1
  43. intentkit/skills/cryptocompare/fetch_top_market_cap.py +1 -1
  44. intentkit/skills/cryptocompare/fetch_top_volume.py +1 -1
  45. intentkit/skills/cryptocompare/fetch_trading_signals.py +1 -1
  46. intentkit/skills/cryptopanic/__init__.py +3 -6
  47. intentkit/skills/cryptopanic/base.py +53 -55
  48. intentkit/skills/cryptopanic/fetch_crypto_news.py +0 -2
  49. intentkit/skills/cryptopanic/fetch_crypto_sentiment.py +1 -3
  50. intentkit/skills/dapplooker/__init__.py +2 -9
  51. intentkit/skills/dapplooker/base.py +2 -5
  52. intentkit/skills/defillama/__init__.py +24 -74
  53. intentkit/skills/defillama/base.py +3 -13
  54. intentkit/skills/defillama/coins/fetch_batch_historical_prices.py +2 -2
  55. intentkit/skills/defillama/coins/fetch_block.py +2 -2
  56. intentkit/skills/defillama/coins/fetch_current_prices.py +2 -2
  57. intentkit/skills/defillama/coins/fetch_first_price.py +2 -2
  58. intentkit/skills/defillama/coins/fetch_historical_prices.py +2 -2
  59. intentkit/skills/defillama/coins/fetch_price_chart.py +2 -2
  60. intentkit/skills/defillama/coins/fetch_price_percentage.py +2 -2
  61. intentkit/skills/defillama/fees/fetch_fees_overview.py +2 -2
  62. intentkit/skills/defillama/stablecoins/fetch_stablecoin_chains.py +2 -2
  63. intentkit/skills/defillama/stablecoins/fetch_stablecoin_charts.py +2 -2
  64. intentkit/skills/defillama/stablecoins/fetch_stablecoin_prices.py +2 -2
  65. intentkit/skills/defillama/stablecoins/fetch_stablecoins.py +2 -2
  66. intentkit/skills/defillama/tvl/fetch_chain_historical_tvl.py +2 -2
  67. intentkit/skills/defillama/tvl/fetch_chains.py +2 -2
  68. intentkit/skills/defillama/tvl/fetch_historical_tvl.py +2 -2
  69. intentkit/skills/defillama/tvl/fetch_protocol.py +2 -2
  70. intentkit/skills/defillama/tvl/fetch_protocol_current_tvl.py +2 -2
  71. intentkit/skills/defillama/tvl/fetch_protocols.py +2 -2
  72. intentkit/skills/defillama/volumes/fetch_dex_overview.py +2 -2
  73. intentkit/skills/defillama/volumes/fetch_dex_summary.py +2 -2
  74. intentkit/skills/defillama/volumes/fetch_options_overview.py +2 -2
  75. intentkit/skills/defillama/yields/fetch_pool_chart.py +2 -2
  76. intentkit/skills/defillama/yields/fetch_pools.py +2 -2
  77. intentkit/skills/dexscreener/__init__.py +97 -102
  78. intentkit/skills/dexscreener/base.py +125 -130
  79. intentkit/skills/dexscreener/get_pair_info.py +2 -3
  80. intentkit/skills/dexscreener/get_token_pairs.py +2 -3
  81. intentkit/skills/dexscreener/get_tokens_info.py +2 -3
  82. intentkit/skills/dexscreener/search_token.py +2 -4
  83. intentkit/skills/dune_analytics/__init__.py +4 -6
  84. intentkit/skills/dune_analytics/base.py +50 -52
  85. intentkit/skills/dune_analytics/fetch_kol_buys.py +0 -2
  86. intentkit/skills/dune_analytics/fetch_nation_metrics.py +0 -2
  87. intentkit/skills/elfa/__init__.py +5 -18
  88. intentkit/skills/elfa/base.py +8 -10
  89. intentkit/skills/enso/__init__.py +9 -29
  90. intentkit/skills/enso/base.py +3 -6
  91. intentkit/skills/enso/networks.py +1 -6
  92. intentkit/skills/enso/route.py +4 -8
  93. intentkit/skills/enso/tokens.py +2 -12
  94. intentkit/skills/erc20/__init__.py +1 -5
  95. intentkit/skills/erc721/__init__.py +1 -3
  96. intentkit/skills/firecrawl/__init__.py +5 -18
  97. intentkit/skills/firecrawl/base.py +2 -5
  98. intentkit/skills/firecrawl/clear.py +3 -6
  99. intentkit/skills/firecrawl/crawl.py +10 -9
  100. intentkit/skills/firecrawl/query.py +3 -1
  101. intentkit/skills/firecrawl/scrape.py +10 -14
  102. intentkit/skills/firecrawl/utils.py +39 -31
  103. intentkit/skills/github/__init__.py +2 -7
  104. intentkit/skills/github/base.py +0 -4
  105. intentkit/skills/heurist/__init__.py +8 -27
  106. intentkit/skills/heurist/base.py +2 -5
  107. intentkit/skills/heurist/image_generation_animagine_xl.py +5 -5
  108. intentkit/skills/heurist/image_generation_arthemy_comics.py +5 -5
  109. intentkit/skills/heurist/image_generation_arthemy_real.py +5 -5
  110. intentkit/skills/heurist/image_generation_braindance.py +5 -5
  111. intentkit/skills/heurist/image_generation_cyber_realistic_xl.py +5 -5
  112. intentkit/skills/heurist/image_generation_flux_1_dev.py +5 -5
  113. intentkit/skills/heurist/image_generation_sdxl.py +5 -5
  114. intentkit/skills/http/__init__.py +4 -15
  115. intentkit/skills/http/base.py +0 -4
  116. intentkit/skills/lifi/__init__.py +1 -6
  117. intentkit/skills/lifi/base.py +0 -4
  118. intentkit/skills/lifi/token_execute.py +1 -4
  119. intentkit/skills/lifi/token_quote.py +1 -3
  120. intentkit/skills/moralis/__init__.py +3 -7
  121. intentkit/skills/moralis/base.py +2 -5
  122. intentkit/skills/morpho/__init__.py +1 -3
  123. intentkit/skills/nation/__init__.py +2 -7
  124. intentkit/skills/nation/base.py +4 -7
  125. intentkit/skills/openai/__init__.py +5 -18
  126. intentkit/skills/openai/base.py +8 -10
  127. intentkit/skills/openai/dalle_image_generation.py +2 -5
  128. intentkit/skills/openai/gpt_image_generation.py +2 -5
  129. intentkit/skills/openai/gpt_image_to_image.py +2 -5
  130. intentkit/skills/openai/image_to_text.py +2 -5
  131. intentkit/skills/portfolio/__init__.py +11 -35
  132. intentkit/skills/portfolio/base.py +2 -5
  133. intentkit/skills/pyth/__init__.py +1 -5
  134. intentkit/skills/slack/__init__.py +5 -17
  135. intentkit/skills/slack/base.py +0 -4
  136. intentkit/skills/supabase/__init__.py +7 -23
  137. intentkit/skills/supabase/base.py +0 -4
  138. intentkit/skills/superfluid/__init__.py +1 -3
  139. intentkit/skills/system/__init__.py +7 -24
  140. intentkit/skills/system/add_autonomous_task.py +2 -2
  141. intentkit/skills/system/delete_autonomous_task.py +2 -2
  142. intentkit/skills/system/edit_autonomous_task.py +2 -4
  143. intentkit/skills/system/list_autonomous_tasks.py +2 -2
  144. intentkit/skills/system/read_agent_api_key.py +6 -4
  145. intentkit/skills/system/regenerate_agent_api_key.py +6 -4
  146. intentkit/skills/tavily/__init__.py +3 -12
  147. intentkit/skills/tavily/base.py +2 -5
  148. intentkit/skills/tavily/tavily_extract.py +1 -2
  149. intentkit/skills/tavily/tavily_search.py +3 -3
  150. intentkit/skills/token/__init__.py +5 -10
  151. intentkit/skills/token/base.py +2 -6
  152. intentkit/skills/twitter/__init__.py +11 -35
  153. intentkit/skills/twitter/base.py +18 -29
  154. intentkit/skills/twitter/follow_user.py +1 -4
  155. intentkit/skills/twitter/get_mentions.py +2 -8
  156. intentkit/skills/twitter/get_timeline.py +3 -10
  157. intentkit/skills/twitter/get_user_by_username.py +1 -4
  158. intentkit/skills/twitter/get_user_tweets.py +3 -10
  159. intentkit/skills/twitter/like_tweet.py +1 -4
  160. intentkit/skills/twitter/post_tweet.py +3 -5
  161. intentkit/skills/twitter/reply_tweet.py +3 -5
  162. intentkit/skills/twitter/retweet.py +1 -4
  163. intentkit/skills/twitter/search_tweets.py +3 -10
  164. intentkit/skills/unrealspeech/__init__.py +2 -7
  165. intentkit/skills/unrealspeech/base.py +0 -4
  166. intentkit/skills/venice_audio/__init__.py +99 -106
  167. intentkit/skills/venice_audio/base.py +118 -121
  168. intentkit/skills/venice_audio/venice_audio.py +1 -5
  169. intentkit/skills/venice_image/__init__.py +147 -154
  170. intentkit/skills/venice_image/base.py +185 -192
  171. intentkit/skills/web_scraper/__init__.py +5 -18
  172. intentkit/skills/web_scraper/base.py +20 -4
  173. intentkit/skills/web_scraper/document_indexer.py +6 -4
  174. intentkit/skills/web_scraper/scrape_and_index.py +11 -10
  175. intentkit/skills/web_scraper/utils.py +38 -38
  176. intentkit/skills/web_scraper/website_indexer.py +7 -8
  177. intentkit/skills/weth/__init__.py +1 -5
  178. intentkit/skills/wow/__init__.py +1 -5
  179. intentkit/skills/xmtp/__init__.py +4 -15
  180. {intentkit-0.8.11.dist-info → intentkit-0.8.12.dist-info}/METADATA +1 -1
  181. {intentkit-0.8.11.dist-info → intentkit-0.8.12.dist-info}/RECORD +183 -183
  182. {intentkit-0.8.11.dist-info → intentkit-0.8.12.dist-info}/WHEEL +0 -0
  183. {intentkit-0.8.11.dist-info → intentkit-0.8.12.dist-info}/licenses/LICENSE +0 -0
intentkit/__init__.py CHANGED
@@ -3,7 +3,7 @@
3
3
  A powerful platform for building AI agents with blockchain and cryptocurrency capabilities.
4
4
  """
5
5
 
6
- __version__ = "0.8.11"
6
+ __version__ = "0.8.12"
7
7
  __author__ = "hyacinthus"
8
8
  __email__ = "hyacinthus@gmail.com"
9
9
 
@@ -41,3 +41,7 @@ class AgentContext(BaseModel):
41
41
  @property
42
42
  def agent(self) -> Agent:
43
43
  return self.get_agent()
44
+
45
+ @property
46
+ def thread_id(self) -> str:
47
+ return f"{self.agent_id}-{self.chat_id}"
@@ -1,7 +1,7 @@
1
1
  from abc import ABC, abstractmethod
2
- from typing import Any, Dict, List, Optional
2
+ from typing import Any, Dict, Optional
3
3
 
4
- from intentkit.models.agent import Agent, AgentAutonomous
4
+ from intentkit.models.agent import Agent
5
5
  from intentkit.models.agent_data import AgentData, AgentQuota
6
6
 
7
7
 
@@ -58,141 +58,3 @@ class SkillStoreABC(ABC):
58
58
  Agent quota if found, None otherwise
59
59
  """
60
60
  pass
61
-
62
- @staticmethod
63
- @abstractmethod
64
- async def get_agent_skill_data(
65
- agent_id: str, skill: str, key: str
66
- ) -> Optional[Dict[str, Any]]:
67
- """Get skill data for an agent.
68
-
69
- Args:
70
- agent_id: ID of the agent
71
- skill: Name of the skill
72
- key: Data key
73
-
74
- Returns:
75
- Dictionary containing the skill data if found, None otherwise
76
- """
77
- pass
78
-
79
- @staticmethod
80
- @abstractmethod
81
- async def save_agent_skill_data(
82
- agent_id: str, skill: str, key: str, data: Dict[str, Any]
83
- ) -> None:
84
- """Save or update skill data for an agent.
85
-
86
- Args:
87
- agent_id: ID of the agent
88
- skill: Name of the skill
89
- key: Data key
90
- data: JSON data to store
91
- """
92
- pass
93
-
94
- @staticmethod
95
- @abstractmethod
96
- async def delete_agent_skill_data(agent_id: str, skill: str, key: str) -> None:
97
- """Delete skill data for an agent.
98
-
99
- Args:
100
- agent_id: ID of the agent
101
- skill: Name of the skill
102
- key: Data key
103
- """
104
- pass
105
-
106
- @staticmethod
107
- @abstractmethod
108
- async def get_thread_skill_data(
109
- thread_id: str, skill: str, key: str
110
- ) -> Optional[Dict[str, Any]]:
111
- """Get skill data for a thread.
112
-
113
- Args:
114
- thread_id: ID of the thread
115
- skill: Name of the skill
116
- key: Data key
117
-
118
- Returns:
119
- Dictionary containing the skill data if found, None otherwise
120
- """
121
- pass
122
-
123
- @staticmethod
124
- @abstractmethod
125
- async def save_thread_skill_data(
126
- thread_id: str,
127
- agent_id: str,
128
- skill: str,
129
- key: str,
130
- data: Dict[str, Any],
131
- ) -> None:
132
- """Save or update skill data for a thread.
133
-
134
- Args:
135
- thread_id: ID of the thread
136
- agent_id: ID of the agent that owns this thread
137
- skill: Name of the skill
138
- key: Data key
139
- data: JSON data to store
140
- """
141
- pass
142
-
143
- @staticmethod
144
- @abstractmethod
145
- async def list_autonomous_tasks(agent_id: str) -> List[AgentAutonomous]:
146
- """List all autonomous tasks for an agent.
147
-
148
- Args:
149
- agent_id: ID of the agent
150
-
151
- Returns:
152
- List[AgentAutonomous]: List of autonomous task configurations
153
- """
154
- pass
155
-
156
- @staticmethod
157
- @abstractmethod
158
- async def add_autonomous_task(
159
- agent_id: str, task: AgentAutonomous
160
- ) -> AgentAutonomous:
161
- """Add a new autonomous task to an agent.
162
-
163
- Args:
164
- agent_id: ID of the agent
165
- task: Autonomous task configuration
166
-
167
- Returns:
168
- AgentAutonomous: The created task
169
- """
170
- pass
171
-
172
- @staticmethod
173
- @abstractmethod
174
- async def delete_autonomous_task(agent_id: str, task_id: str) -> None:
175
- """Delete an autonomous task from an agent.
176
-
177
- Args:
178
- agent_id: ID of the agent
179
- task_id: ID of the task to delete
180
- """
181
- pass
182
-
183
- @staticmethod
184
- @abstractmethod
185
- async def update_autonomous_task(
186
- agent_id: str, task_id: str, task_updates: dict
187
- ) -> AgentAutonomous:
188
- """Update an autonomous task for an agent.
189
-
190
- Args:
191
- agent_id: ID of the agent
192
- task_id: ID of the task to update
193
- task_updates: Dictionary containing fields to update
194
-
195
- Returns:
196
- AgentAutonomous: The updated task
197
- """
198
- pass
@@ -11,7 +11,6 @@ from requests.auth import HTTPBasicAuth
11
11
  from requests_oauthlib import OAuth2Session
12
12
  from tweepy.asynchronous import AsyncClient
13
13
 
14
- from intentkit.abstracts.skill import SkillStoreABC
15
14
  from intentkit.abstracts.twitter import TwitterABC
16
15
  from intentkit.models.agent_data import AgentData
17
16
  from intentkit.models.redis import get_redis
@@ -80,33 +79,44 @@ class TwitterClient(TwitterABC):
80
79
 
81
80
  Args:
82
81
  agent_id: The ID of the agent
83
- skill_store: The skill store for retrieving data
84
82
  config: Configuration dictionary that may contain API keys
85
83
  """
86
84
 
87
- def __init__(self, agent_id: str, skill_store: SkillStoreABC, config: Dict) -> None:
85
+ def __init__(self, agent_id: str, config: Dict) -> None:
88
86
  """Initialize the Twitter client.
89
87
 
90
88
  Args:
91
89
  agent_id: The ID of the agent
92
- skill_store: The skill store for retrieving data
93
90
  config: Configuration dictionary that may contain API keys
94
91
  """
95
92
  self.agent_id = agent_id
96
93
  self._client: Optional[AsyncClient] = None
97
- self._skill_store = skill_store
98
94
  self._agent_data: Optional[AgentData] = None
99
95
  self.use_key = _is_self_key(config)
100
96
  self._config = config
101
97
 
98
+ async def _get_agent_data(self) -> AgentData:
99
+ """Retrieve cached agent data, loading from the database if needed."""
100
+
101
+ if not self._agent_data:
102
+ self._agent_data = await AgentData.get(self.agent_id)
103
+ return self._agent_data
104
+
105
+ async def _refresh_agent_data(self) -> AgentData:
106
+ """Reload agent data from the database."""
107
+
108
+ self._agent_data = await AgentData.get(self.agent_id)
109
+ return self._agent_data
110
+
102
111
  async def get_client(self) -> AsyncClient:
103
112
  """Get the initialized Twitter client.
104
113
 
105
114
  Returns:
106
115
  AsyncClient: The Twitter client if initialized
107
116
  """
108
- if not self._agent_data:
109
- self._agent_data = await self._skill_store.get_agent_data(self.agent_id)
117
+
118
+ agent_data = await self._get_agent_data()
119
+
110
120
  if not self._client:
111
121
  # Check if we have API keys in config
112
122
  if self.use_key:
@@ -118,8 +128,8 @@ class TwitterClient(TwitterABC):
118
128
  return_type=dict,
119
129
  )
120
130
  # refresh userinfo if needed
121
- if not self._agent_data.twitter_self_key_refreshed_at or (
122
- self._agent_data.twitter_self_key_refreshed_at
131
+ if not agent_data.twitter_self_key_refreshed_at or (
132
+ agent_data.twitter_self_key_refreshed_at
123
133
  < datetime.now(tz=timezone.utc) - timedelta(days=1)
124
134
  ):
125
135
  me = await self._client.get_me(
@@ -127,7 +137,7 @@ class TwitterClient(TwitterABC):
127
137
  user_fields="id,username,name,verified",
128
138
  )
129
139
  if me and "data" in me and "id" in me["data"]:
130
- await self._skill_store.set_agent_data(
140
+ await AgentData.patch(
131
141
  self.agent_id,
132
142
  {
133
143
  "twitter_id": me["data"]["id"],
@@ -139,9 +149,7 @@ class TwitterClient(TwitterABC):
139
149
  ),
140
150
  },
141
151
  )
142
- self._agent_data = await self._skill_store.get_agent_data(
143
- self.agent_id
144
- )
152
+ agent_data = await self._refresh_agent_data()
145
153
  logger.info(
146
154
  f"Twitter self key client initialized. "
147
155
  f"Use API key: {self.use_key}, "
@@ -152,39 +160,40 @@ class TwitterClient(TwitterABC):
152
160
  )
153
161
  return self._client
154
162
  # Otherwise try to get OAuth2 tokens from agent data
155
- if not self._agent_data.twitter_access_token:
163
+ if not agent_data.twitter_access_token:
156
164
  raise Exception(f"[{self.agent_id}] Twitter access token not found")
157
- if not self._agent_data.twitter_access_token_expires_at:
165
+ if not agent_data.twitter_access_token_expires_at:
158
166
  raise Exception(
159
167
  f"[{self.agent_id}] Twitter access token expiration not found"
160
168
  )
161
- if self._agent_data.twitter_access_token_expires_at <= datetime.now(
169
+ if agent_data.twitter_access_token_expires_at <= datetime.now(
162
170
  tz=timezone.utc
163
171
  ):
164
172
  raise Exception(f"[{self.agent_id}] Twitter access token has expired")
165
173
  self._client = AsyncClient(
166
- bearer_token=self._agent_data.twitter_access_token,
174
+ bearer_token=agent_data.twitter_access_token,
167
175
  return_type=dict,
168
176
  )
169
177
  return self._client
178
+
170
179
  if not self.use_key:
171
180
  # check if access token has expired
172
- if self._agent_data.twitter_access_token_expires_at <= datetime.now(
181
+ if agent_data.twitter_access_token_expires_at <= datetime.now(
173
182
  tz=timezone.utc
174
183
  ):
175
- self._agent_data = await self._skill_store.get_agent_data(self.agent_id)
176
- # check again
177
- if self._agent_data.twitter_access_token_expires_at <= datetime.now(
184
+ agent_data = await self._refresh_agent_data()
185
+ if agent_data.twitter_access_token_expires_at <= datetime.now(
178
186
  tz=timezone.utc
179
187
  ):
180
188
  raise Exception(
181
189
  f"[{self.agent_id}] Twitter access token has expired"
182
190
  )
183
191
  self._client = AsyncClient(
184
- bearer_token=self._agent_data.twitter_access_token,
192
+ bearer_token=agent_data.twitter_access_token,
185
193
  return_type=dict,
186
194
  )
187
195
  return self._client
196
+
188
197
  return self._client
189
198
 
190
199
  @property
@@ -352,7 +361,7 @@ class TwitterClient(TwitterABC):
352
361
  ValueError: If there's an error uploading the media.
353
362
  """
354
363
  # Get agent data to access the token
355
- agent_data = await self._skill_store.get_agent_data(agent_id)
364
+ agent_data = await AgentData.get(agent_id)
356
365
  if not agent_data.twitter_access_token:
357
366
  raise ValueError("Only linked X account can post media")
358
367
 
@@ -423,15 +432,13 @@ def _is_self_key(config: Dict) -> bool:
423
432
  return config.get("api_key_provider") == "agent_owner"
424
433
 
425
434
 
426
- def get_twitter_client(
427
- agent_id: str, skill_store: SkillStoreABC, config: Dict
428
- ) -> "TwitterClient":
435
+ def get_twitter_client(agent_id: str, config: Dict) -> "TwitterClient":
429
436
  if _is_self_key(config):
430
437
  if agent_id not in _clients_self_key:
431
- _clients_self_key[agent_id] = TwitterClient(agent_id, skill_store, config)
438
+ _clients_self_key[agent_id] = TwitterClient(agent_id, config)
432
439
  return _clients_self_key[agent_id]
433
440
  if agent_id not in _clients_linked:
434
- _clients_linked[agent_id] = TwitterClient(agent_id, skill_store, config)
441
+ _clients_linked[agent_id] = TwitterClient(agent_id, config)
435
442
  return _clients_linked[agent_id]
436
443
 
437
444