How polling-based LLM invocation works
mainStarting from SDK version 0.9.0, plugins can support polling-based LLM invocation. This allows a model to declare a polling feature and implement methods that handle long-running provider jobs. Instead of a single long request, the plugin submits a job and returns status updates through a short request/response flow.
Polling results transition through three specific states:
running: Returns plugin-owned state to be used for the next polling check.succeeded: Returns the final LLM result.failed: Returns a terminal error state.