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

Method present

controller/task_plugin_debug.go:229–241  ·  view source on GitHub ↗
(task *model.Task, presenter string)

Source from the content-addressed store, hash-verified

227}
228
229func (d taskPluginSubmitDiagnostics) present(task *model.Task, presenter string) {
230 if d.pluginKey == "" || task == nil {
231 return
232 }
233 logger.LogDebug(
234 d.context,
235 "task_plugin subsystem=submit event=present generation=%d plugin=%q public_task_id=%q presenter=%q durable=true",
236 d.generation,
237 d.pluginKey,
238 task.TaskID,
239 presenter,
240 )
241}
242
243func (d taskPluginSubmitDiagnostics) presentError(taskErr *dto.TaskError) {
244 if d.pluginKey == "" || taskErr == nil {

Callers 1

presentTaskSubmissionFunction · 0.80

Calls 1

LogDebugFunction · 0.92

Tested by

no test coverage detected