Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/docker/docker-agent
/ IsValid
Method
IsValid
pkg/modelsdev/id.go:72–74 ·
view source on GitHub ↗
IsValid reports whether both components of the ID are populated.
()
Source
from the content-addressed store, hash-verified
70
71
// IsValid reports whether both components of the ID are populated.
72
func
(id ID) IsValid() bool {
73
return
id.Provider !=
""
&& id.Model !=
""
74
}
Callers
10
TestReproIssue2741_CustomProviderAttachmentDegradesToTextOnly
Function · 0.95
TestNewID
Function · 0.95
TestIDZero
Function · 0.95
HandleRun
Method · 0.45
TestStartClientReturnsActiveSpan
Function · 0.45
GetModel
Method · 0.45
TestIDIsValid
Function · 0.45
calculateSemanticUsageCost
Function · 0.45
clearTimestamps
Function · 0.45
LookupFamily
Function · 0.45
Calls
no outgoing calls
Tested by
6
TestReproIssue2741_CustomProviderAttachmentDegradesToTextOnly
Function · 0.76
TestNewID
Function · 0.76
TestIDZero
Function · 0.76
TestStartClientReturnsActiveSpan
Function · 0.36
TestIDIsValid
Function · 0.36
clearTimestamps
Function · 0.36