MCPcopy Create free account
hub / github.com/coder/coder / set

Method set

aibridge/intercept/responses/reqpayload.go:256–262  ·  view source on GitHub ↗
(path string, value any)

Source from the content-addressed store, hash-verified

254}
255
256func (p RequestPayload) set(path string, value any) (RequestPayload, error) {
257 updated, err := sjson.SetBytes(p, path, value)
258 if err != nil {
259 return p, xerrors.Errorf("failed to set value at path %s: %w", path, err)
260 }
261 return updated, nil
262}

Callers 3

injectToolsMethod · 0.95
appendInputItemsMethod · 0.95

Calls 1

ErrorfMethod · 0.45

Tested by

no test coverage detected