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

Function cloneModelCatalogConfig

internal/workspace/clone.go:297–308  ·  view source on GitHub ↗
(src aghconfig.ModelCatalogConfig)

Source from the content-addressed store, hash-verified

295}
296
297func cloneModelCatalogConfig(src aghconfig.ModelCatalogConfig) aghconfig.ModelCatalogConfig {
298 return aghconfig.ModelCatalogConfig{
299 Sources: aghconfig.ModelCatalogSourcesConfig{
300 ModelsDev: aghconfig.ModelsDevSourceConfig{
301 Enabled: cloneBoolPtr(src.Sources.ModelsDev.Enabled),
302 Endpoint: src.Sources.ModelsDev.Endpoint,
303 TTL: src.Sources.ModelsDev.TTL,
304 Timeout: src.Sources.ModelsDev.Timeout,
305 },
306 },
307 }
308}
309
310func cloneAgentDefs(src []aghconfig.AgentDef) []aghconfig.AgentDef {
311 if len(src) == 0 {

Callers 1

cloneConfigFunction · 0.85

Calls 1

cloneBoolPtrFunction · 0.70

Tested by

no test coverage detected