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

Method CurrentAgentTools

pkg/runtime/runtime.go:739–742  ·  view source on GitHub ↗

CurrentAgentTools returns the tools available to the current agent. This starts the toolsets if needed and returns all available tools.

(ctx context.Context)

Source from the content-addressed store, hash-verified

737// CurrentAgentTools returns the tools available to the current agent.
738// This starts the toolsets if needed and returns all available tools.
739func (r *LocalRuntime) CurrentAgentTools(ctx context.Context) ([]tools.Tool, error) {
740 a := r.CurrentAgent()
741 return a.Tools(ctx)
742}
743
744// ToolsetState is the coarse lifecycle bucket the agent inspector renders as a
745// status glyph. It collapses the full lifecycle.State machine into the three

Callers

nothing calls this directly

Calls 2

CurrentAgentMethod · 0.95
ToolsMethod · 0.65

Tested by

no test coverage detected