MCPcopy Create free account
hub / github.com/TaskingAI/TaskingAI / list_bundles

Function list_bundles

backend/app/services/tool/plugin/cache.py:102–120  ·  view source on GitHub ↗

List bundles. :param limit: the maximum number of bundles to return. :param offset: the offset of bundles to return. :return: a list of bundles.

(
    limit: int,
    offset: Optional[int],
)

Source from the content-addressed store, hash-verified

100
101
102def list_bundles(
103 limit: int,
104 offset: Optional[int],
105):
106 """
107 List bundles.
108 :param limit: the maximum number of bundles to return.
109 :param offset: the offset of bundles to return.
110 :return: a list of bundles.
111 """
112
113 # Paginate
114 end_index = offset + limit
115 page = _bundles[offset:end_index] or []
116
117 # Check if there's more
118 has_more = end_index < len(_bundles)
119
120 return page, len(_bundles), has_more
121
122
123def list_plugins(

Callers 1

api_list_bundlesFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected