MCPcopy Create free account
hub / github.com/InferCore/InferCore / cloneRequestRow

Function cloneRequestRow

internal/requests/memory.go:93–99  ·  view source on GitHub ↗
(r RequestRow)

Source from the content-addressed store, hash-verified

91func (m *memoryStore) Close() error { return nil }
92
93func cloneRequestRow(r RequestRow) RequestRow {
94 r.InputJSON = append([]byte(nil), r.InputJSON...)
95 r.ContextJSON = append([]byte(nil), r.ContextJSON...)
96 r.AIRequestJSON = append([]byte(nil), r.AIRequestJSON...)
97 r.PolicySnapshot = append([]byte(nil), r.PolicySnapshot...)
98 return r
99}

Callers 1

GetRequestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected