Skip to content

Commit 79c3069

Browse files
Adam BaloghAdam Balogh
authored andcommitted
fix tool
1 parent 0dba555 commit 79c3069

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

agent/tools.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ def retrieve_solana_pools(
4242
user_tokens=user_tokens,
4343
)
4444

45-
return protocol_registry.get_pools(query)
45+
pools = protocol_registry.get_pools(query)
46+
if len(pools) == 0:
47+
return "No pools found."
48+
49+
return pools
4650

4751

4852
def create_investor_agent_toolkit() -> List[BaseTool]:

0 commit comments

Comments
 (0)