MCPcopy Create free account
hub / github.com/Bytez-com/docs / _List

Class _List

sdk/python/bytez/main.py:22–34  ·  view source on GitHub ↗

A helper class to expose list functions under `bytez.list`.

Source from the content-addressed store, hash-verified

20 self.list = self._List(self) # Initialize the list object
21
22 class _List:
23 """A helper class to expose list functions under `bytez.list`."""
24
25 def __init__(self, parent):
26 self._parent = parent # Store reference to the main Bytez instance
27
28 def models(self, options: Optional[Dict[str, str]] = None):
29 """Lists available models and provides basic information about each."""
30 return self._parent._list_models(options)
31
32 def tasks(self):
33 """List available tasks."""
34 return self._parent._list_tasks()
35
36 def _list_models(self, options: Optional[Dict[str, str]] = None):
37 """Hidden function to list models."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected