IsExternalReference reports whether the input is an external agent reference (OCI image or URL) rather than a local agent name defined in the same config. Local agent names never contain "/", so the slash check distinguishes them from OCI references like "agentcatalog/pirate" or "docker.io/org/agent
(input string)
| 257 | // from OCI references like "agentcatalog/pirate" or "docker.io/org/agent:v1". |
| 258 | // It also handles the "name:ref" syntax (e.g. "reviewer:agentcatalog/review-pr"). |
| 259 | func IsExternalReference(input string) bool { |
| 260 | _, ref := ParseExternalAgentRef(input) |
| 261 | return isExternalRef(ref) |
| 262 | } |
| 263 | |
| 264 | // ParseExternalAgentRef parses an external agent reference that may include an |
| 265 | // explicit name prefix. The syntax is "name:reference" where name is a simple |