execute

open override fun execute(params: IPluginServletActionParams): IPluginServletActionRetVal

Routes incoming requests to one of three handlers:

  1. handleStreamPoll -- returns the current state of an in-flight streaming session.

  2. handleHealthCheck -- returns server readiness, model info, and resource status.

  3. handleNewQuestion -- processes a new question (streaming or synchronous).

Return

A JSON servlet response containing polling data, health state, or inference output.

Parameters

params

Servlet execution context with request headers and payload data.

Throws

FCPluginException

If request handling fails unexpectedly.