nsmcp::ChatCompletionsBackend method run (public)
<instance of nsmcp::ChatCompletionsBackend> run question state \ emit
Defined in /usr/local/ns/tcl/nsmcp/question-chat-completions.tcl
Execute a question through a temporary chat-completions runner. Forward the question, retained state and event callback; destroy the runner on every exit.
- Parameters:
- question (required)
- Question text supplied to the selected provider.
- state (required)
- Opaque retained provider continuation or scan state.
- emit (required)
- Event callback prefix; returning false requests cancellation.
- Returns:
- The runner's completion or continuation result.
- Testcases:
- No testcase defined.
Source code: set runner [::nsmcp::ChatCompletionsRun new -backend [self] -emit $emit] try { return [$runner run $question $state] } finally { $runner destroy }XQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)