MCPcopy Create free account
hub / github.com/QuantumNous/new-api / writeTaskPluginResponseNotFound

Function writeTaskPluginResponseNotFound

controller/plugin_protocol.go:1091–1094  ·  view source on GitHub ↗
(c *gin.Context, responseID, reason string)

Source from the content-addressed store, hash-verified

1089}
1090
1091func writeTaskPluginResponseNotFound(c *gin.Context, responseID, reason string) {
1092 logger.LogDebug(c, "task_plugin subsystem=protocol event=retrieve_not_found reason=%s response_id=%q", reason, responseID)
1093 respondPluginProtocolError(c, http.StatusNotFound, "not_found", "No response found with id '"+responseID+"'.")
1094}
1095
1096func writeTaskPluginProtocolHeartbeat(c *gin.Context) error {
1097 if _, err := c.Writer.Write([]byte(": PING\n")); err != nil {

Callers 1

Calls 2

LogDebugFunction · 0.92

Tested by

no test coverage detected