Skip to content

Documentation / @agentick/mcp / normalizeCompletionResult

Function: normalizeCompletionResult()

normalizeCompletionResult(raw): CompletionResult

Defined in: protocol/completions.ts:40

Coerce raw handler output (string[] legacy shape or CompletionResult) into a normalized CompletionResult, then apply the 100-cap.

Parameters

raw

readonly string[] | CompletionResult

Returns

CompletionResult

Released under the ISC License.