Chat-Service / tests /test_graph_tool.py
ArabicNewsAnalyzer's picture
Upload 56 files
de28957 verified
Raw
History Blame Contribute Delete
338 Bytes
import asyncio
import sys
if sys.platform == "win32":
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
from app.tools.graph_tool import graph_query_tool
async def main():
result = await graph_query_tool(query_type="most_connected_entities", limit=5)
print(result)
asyncio.run(main())