MCPcopy Create free account
hub / github.com/compozy/agh / providerModelSourceStatusBundle

Function providerModelSourceStatusBundle

internal/cli/provider_models.go:173–197  ·  view source on GitHub ↗
(
	humanTitle string,
	toonName string,
	jsonValue any,
	sources []ProviderModelSourceStatusRecord,
)

Source from the content-addressed store, hash-verified

171}
172
173func 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
199func providerModelSourceStatusRow(source ProviderModelSourceStatusRecord) []string {
200 return []string{

Callers 2

Calls 1

listBundleFunction · 0.85

Tested by

no test coverage detected