A helper class to expose list functions under `bytez.list`.
| 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.""" |
nothing calls this directly
no outgoing calls
no test coverage detected