( humanTitle string, toonName string, jsonValue any, sources []ProviderModelSourceStatusRecord, )
| 171 | } |
| 172 | |
| 173 | func providerModelSourceStatusBundle( |
| 174 | humanTitle string, |
| 175 | toonName string, |
| 176 | jsonValue any, |
| 177 | sources []ProviderModelSourceStatusRecord, |
| 178 | ) outputBundle { |
| 179 | return listBundle( |
| 180 | jsonValue, |
| 181 | sources, |
| 182 | humanTitle, |
| 183 | []string{ |
| 184 | agentKernelProviderValue, |
| 185 | authoredContextSourceValue, |
| 186 | bridgeKindValue, |
| 187 | authoredContextStateValue, |
| 188 | "Rows", |
| 189 | "Stale", |
| 190 | providerModelsErrorValue, |
| 191 | }, |
| 192 | toonName, |
| 193 | []string{"provider_id", "source_id", "source_kind", "refresh_state", "row_count", "stale", "last_error"}, |
| 194 | providerModelSourceStatusRow, |
| 195 | providerModelSourceStatusRow, |
| 196 | ) |
| 197 | } |
| 198 | |
| 199 | func providerModelSourceStatusRow(source ProviderModelSourceStatusRecord) []string { |
| 200 | return []string{ |
no test coverage detected