Connection
Base URL, credentials and a reachable server.
Design loading, empty and retry states for a mobile list. Keep existing items visible during refresh and check that retry does not start duplicate requests.
Base URL, credentials and a reachable server.
A model available through the configured endpoint.
Context limits and tool support are determined by the model and server.
if (state.loading) return LoadingView();
if (state.error) return RetryView(reload);
if (!state.items.length) return EmptyView();
return ItemList(state.items);