Files
docker-agent/pkg/runtime/execution_capabilities.go
Djordje Lukic 5114c47ea2 refactor(runtime)!: separate read-only agent inspection
Agent inspector datasets and lifecycle presentation are read-only views, not execution policy. Move inspection and execution-capability types into runtime/inspection and migrate consumers directly, without runtime re-exports. Keep runtime methods as bindings to the current team and agent. Separate startup emission from construction code while preserving progressive discovery and timeouts.
2026-10-26 12:40:22 +01:00

19 lines
507 B
Go

package runtime
import (
"github.com/docker/docker-agent/pkg/runtime/inspection"
)
// AgentExecutionCapabilities inspects the named agent without starting tools or drivers.
// Unknown agents return nil; callers must not interpret absence as native support.
func (r *LocalRuntime) AgentExecutionCapabilities(name string) *inspection.ExecutionCapabilities {
if r == nil || r.team == nil {
return nil
}
a, err := r.team.Agent(name)
if err != nil {
return nil
}
return inspection.Capabilities(a)
}