Skip to content

Commit 5541b25

Browse files
balogh.adam@icloud.combalogh.adam@icloud.com
authored andcommitted
fix bug
1 parent 769faf2 commit 5541b25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agent/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
@tool
3232
@track_tool_usage("retrieve_solana_pools")
33-
def retrieve_solana_pools(
33+
async def retrieve_solana_pools(
3434
tokens: List[str] = None,
3535
config: RunnableConfig = None,
3636
) -> List[Pool]:
@@ -48,7 +48,7 @@ def retrieve_solana_pools(
4848
user_tokens=user_tokens,
4949
)
5050

51-
pools = protocol_registry.get_pools(query)
51+
pools = await protocol_registry.get_pools(query)
5252
if len(pools) == 0:
5353
return "No pools found."
5454

0 commit comments

Comments
 (0)