MCPcopy Index your code
hub / github.com/coder/coder / setBuildID

Function setBuildID

coderd/x/chatd/chattool/chattool.go:154–158  ·  view source on GitHub ↗

setBuildID adds the build_id field to a tool response map when the build ID is known (non-zero).

(result map[string]any, buildID uuid.UUID)

Source from the content-addressed store, hash-verified

152// setBuildID adds the build_id field to a tool response map when
153// the build ID is known (non-zero).
154func setBuildID(result map[string]any, buildID uuid.UUID) {
155 if buildID != uuid.Nil {
156 result["build_id"] = buildID.String()
157 }
158}
159
160// setNoBuild marks the response with no_build: true when no build
161// was triggered. The frontend uses this flag to suppress the

Callers 4

CreateWorkspaceFunction · 0.85
waitForAgentAndRespondFunction · 0.85
StopWorkspaceFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected