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

Method String

pkg/tools/builtin/agent/agent.go:98–111  ·  view source on GitHub ↗

String returns a human-readable name for the status.

()

Source from the content-addressed store, hash-verified

96
97// String returns a human-readable name for the status.
98func (s taskStatus) String() string {
99 switch s {
100 case taskRunning:
101 return "running"
102 case taskCompleted:
103 return "completed"
104 case taskStopped:
105 return "stopped"
106 case taskFailed:
107 return "failed"
108 default:
109 return "unknown"
110 }
111}
112
113// task tracks a single background sub-agent execution.
114type task struct {

Callers 15

sanitizeFetchURLsFunction · 0.45
CallToolMethod · 0.45
fetchRobotsMethod · 0.45
matchesDomainFunction · 0.45
InstructionsMethod · 0.45
lspToolFunction · 0.45
workspaceMethod · 0.45
callHierarchyMethod · 0.45
typeHierarchyMethod · 0.45
applyWorkspaceEditMethod · 0.45
handleSearchToolMethod · 0.45
handleAddToolMethod · 0.45

Calls

no outgoing calls

Tested by 5

TestOpenAPITool_CallGETFunction · 0.36
getTestServerFunction · 0.36
TestStatusToStringFunction · 0.36