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

Method CurrentAgent

pkg/runtime/runtime.go:1171–1173  ·  view source on GitHub ↗

CurrentAgent returns the current agent

()

Source from the content-addressed store, hash-verified

1169
1170// CurrentAgent returns the current agent
1171func (r *LocalRuntime) CurrentAgent() *agent.Agent {
1172 return r.agents.Current()
1173}
1174
1175// resolveSessionAgent returns the agent for the given session. Delegates to
1176// agentRouter.ResolveSession; kept on LocalRuntime for the existing callsites

Callers 15

runCollectingMethod · 0.95
handleTaskTransferMethod · 0.95
CurrentAgentInfoMethod · 0.95
CurrentAgentCommandsMethod · 0.95
CurrentAgentToolsMethod · 0.95
RestartToolsetMethod · 0.95
CurrentMCPPromptsMethod · 0.95
ExecuteMCPPromptMethod · 0.95

Calls 1

CurrentMethod · 0.65