MCPcopy Index your code
hub / github.com/docker/docker-agent / CurrentAgentInfo

Method CurrentAgentInfo

pkg/runtime/runtime.go:719–727  ·  view source on GitHub ↗
(context.Context)

Source from the content-addressed store, hash-verified

717}
718
719func (r *LocalRuntime) CurrentAgentInfo(context.Context) CurrentAgentInfo {
720 currentAgent := r.CurrentAgent()
721
722 return CurrentAgentInfo{
723 Name: currentAgent.Name(),
724 Description: currentAgent.Description(),
725 Commands: currentAgent.Commands(),
726 }
727}
728
729func (r *LocalRuntime) SetCurrentAgent(_ context.Context, agentName string) error {
730 return r.agents.SetValidated(agentName)

Callers

nothing calls this directly

Calls 4

CurrentAgentMethod · 0.95
CommandsMethod · 0.80
NameMethod · 0.65
DescriptionMethod · 0.45

Tested by

no test coverage detected