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

Function writeTaskPluginResponseNotFound

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

Source from the content-addressed store, hash-verified

1064}
1065
1066func writeTaskPluginResponseNotFound(c *gin.Context, responseID, reason string) {
1067 logger.LogDebug(c, "task_plugin subsystem=protocol event=retrieve_not_found reason=%s response_id=%q", reason, responseID)
1068 respondPluginProtocolError(c, http.StatusNotFound, "not_found", "No response found with id '"+responseID+"'.")
1069}
1070
1071func writeTaskPluginProtocolHeartbeat(c *gin.Context) error {
1072 if _, err := c.Writer.Write([]byte(": PING\n")); err != nil {

Callers 1

Calls 2

LogDebugFunction · 0.92

Tested by

no test coverage detected