MCPcopy
hub / github.com/mudler/LocalAI / errorResultf

Function errorResultf

pkg/mcp/localaitools/errors.go:20–22  ·  view source on GitHub ↗

errorResultf is the printf cousin of errorResult.

(format string, args ...any)

Source from the content-addressed store, hash-verified

18
19// errorResultf is the printf cousin of errorResult.
20func errorResultf(format string, args ...any) *mcp.CallToolResult {
21 return errorResult(fmt.Errorf(format, args...))
22}
23
24// jsonResult marshals v as pretty JSON and returns it as the tool's
25// TextContent payload. Errors during marshalling become tool errors.

Callers 5

registerBackendToolsFunction · 0.85
registerModelToolsFunction · 0.85
registerBrandingToolsFunction · 0.85
registerAliasToolsFunction · 0.85
registerConfigToolsFunction · 0.85

Calls 1

errorResultFunction · 0.85

Tested by

no test coverage detected