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

Method currentAgentName

pkg/runtime/runtime.go:711–713  ·  view source on GitHub ↗

currentAgentName is the context-free internal accessor. LocalRuntime resolves the active agent purely from in-memory state, so its internal callers (event callbacks, logging) use this directly; the exported context-taking method exists to satisfy the Runtime interface, whose remote implementation ne

()

Source from the content-addressed store, hash-verified

709// context-taking method exists to satisfy the Runtime interface, whose
710// remote implementation needs a context for its one-time lookup.
711func (r *LocalRuntime) currentAgentName() string {
712 return r.agents.Name()
713}
714
715func (r *LocalRuntime) setCurrentAgent(name string) {
716 r.agents.Set(name)

Callers 15

AvailableModelsMethod · 0.95
RunStreamMethod · 0.95
runStreamLoopMethod · 0.95
runForwardingMethod · 0.95
handleHandoffMethod · 0.95
RunSkillForkMethod · 0.95
ResumeElicitationMethod · 0.95
elicitationHandlerMethod · 0.95
CurrentAgentNameMethod · 0.95
emitToolsChangedMethod · 0.95
emitAgentAndTeamInfoMethod · 0.95
EmitStartupInfoMethod · 0.95

Calls 1

NameMethod · 0.65

Tested by

no test coverage detected