We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 769faf2 commit 5541b25Copy full SHA for 5541b25
agent/tools.py
@@ -30,7 +30,7 @@
30
31
@tool
32
@track_tool_usage("retrieve_solana_pools")
33
-def retrieve_solana_pools(
+async def retrieve_solana_pools(
34
tokens: List[str] = None,
35
config: RunnableConfig = None,
36
) -> List[Pool]:
@@ -48,7 +48,7 @@ def retrieve_solana_pools(
48
user_tokens=user_tokens,
49
)
50
51
- pools = protocol_registry.get_pools(query)
+ pools = await protocol_registry.get_pools(query)
52
if len(pools) == 0:
53
return "No pools found."
54
0 commit comments