Skip to content

Commit

Permalink
Fix: filter connections by entity
Browse files Browse the repository at this point in the history
  • Loading branch information
kaavee315 committed Jan 15, 2025
1 parent dfdf9fa commit 6579900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/composio/tools/toolset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1360,7 +1360,7 @@ def get_connected_account(self, id: str) -> ConnectedAccountModel:
return self.client.connected_accounts.get(connection_id=id)

def get_connected_accounts(self) -> t.List[ConnectedAccountModel]:
return self.client.connected_accounts.get()
return self.client.connected_accounts.get(entity_ids=[self.entity_id] if self.entity_id else None)

def get_entity(self, id: t.Optional[str] = None) -> Entity:
"""Get entity object for given ID."""
Expand Down

0 comments on commit 6579900

Please sign in to comment.