MCPcopy
hub / github.com/Agenta-AI/agenta / alist

Method alist

sdk/agenta/sdk/managers/shared.py:295–317  ·  view source on GitHub ↗
(
        cls,
        *,
        app_id: Optional[str] = None,
        app_slug: Optional[str] = None,
    )

Source from the content-addressed store, hash-verified

293 @classmethod
294 @handle_exceptions()
295 async def alist(
296 cls,
297 *,
298 app_id: Optional[str] = None,
299 app_slug: Optional[str] = None,
300 ):
301 configs_response = await ag.async_api.variants.configs_list( # type: ignore
302 application_ref=SharedManager._ref_or_none( # type: ignore # type: ignore
303 slug=app_slug,
304 version=None,
305 id=app_id,
306 ),
307 ) # type: ignore
308
309 transformed_response = [
310 SharedManager._parse_config_response(config_response)
311 for config_response in configs_response
312 ]
313
314 return [
315 ConfigurationResponse(**response) # type: ignore
316 for response in transformed_response
317 ]
318
319 @classmethod
320 @handle_exceptions()

Callers

nothing calls this directly

Calls 4

_ref_or_noneMethod · 0.80
configs_listMethod · 0.45

Tested by

no test coverage detected