Make get_store_listed_graphs RPC-compatible

This commit is contained in:
Reinier van der Leer
2026-02-16 22:27:28 +01:00
parent 8cb5753aa3
commit 8a2cc14759
2 changed files with 3 additions and 3 deletions

View File

@@ -286,7 +286,7 @@ async def search_marketplace_agents_for_generation(
return []
graph_ids = [agent.agent_graph_id for agent in agents_with_graphs]
graphs = await graph_db().get_store_listed_graphs(*graph_ids)
graphs = await graph_db().get_store_listed_graphs(graph_ids)
results: list[LibraryAgentSummary] = []
for agent in agents_with_graphs:

View File

@@ -1147,14 +1147,14 @@ async def get_graph(
return GraphModel.from_db(graph, for_export)
async def get_store_listed_graphs(*graph_ids: str) -> dict[str, GraphModel]:
async def get_store_listed_graphs(graph_ids: list[str]) -> dict[str, GraphModel]:
"""Batch-fetch multiple store-listed graphs by their IDs.
Only returns graphs that have approved store listings (publicly available).
Does not require permission checks since store-listed graphs are public.
Args:
*graph_ids: Variable number of graph IDs to fetch
graph_ids: List of graph IDs to fetch
Returns:
Dict mapping graph_id to GraphModel for graphs with approved store listings