::nsmcp::ChatCompletionsBackend ::nsmcp::ChatCompletionsBackend describe init run streamClose streamData streamDrain streamHeaders streamOpen ::nsmcp::QuestionBackend ::nsmcp::QuestionBackend canonicalResult describe run ::nsmcp::ChatCompletionsBackend->::nsmcp::QuestionBackend ::nsmcp::CodexQuestionBackend ::nsmcp::CodexQuestionBackend describe run ::nsmcp::CodexQuestionBackend->::nsmcp::QuestionBackend ::nx::Object ::nx::Object __default_accessor __default_method_call_protection __object_configureparameter __resolve_method_path contains copy delete object method delete object property delete object variable destroy_on_cleanup info consts info info info lookup parameters info lookup slots info lookup syntax info lookup variables info object method args info object method body info object method callprotection info object method debug info object method definition info object method definitionhandle info object method deprecated info object method exists info object method handle info object method origin info object method parameters info object method registrationhandle info object method returns info object method submethods info object method syntax info object method type info object slots info object variables info variable definition info variable name info variable parameter move object alias object forward object method object property object variable private protected public qn require namespace require object method require private object method require protected object method require public object method serialize ::nsmcp::QuestionBackend->::nx::Object

Class ::nsmcp::CodexQuestionBackend

::nsmcp::CodexQuestionBackend[i] create ... \
           [ -authenticator (default "::nsmcp::auth") ] \
           [ -command:required command:required ] \
           [ -directory:required directory:required ] \
           [ -host (default "") ] \
           [ -launcher:required launcher:required ] \
           [ -maxResultBytes (default "131072") ] \
           [ -model (default "") ] \
           [ -timeout (default "180") ] \
           [ -tokenFile:required tokenFile:required ] \
           [ -url:required url:required ]

Defined in /usr/local/ns/tcl/nsmcp/question-backend.tcl

Class Relations

  • class: ::nx::Class[i]
  • superclass: ::nsmcp::QuestionBackend[i]
::nx::Class create ::nsmcp::CodexQuestionBackend \
     -superclass ::nsmcp::QuestionBackend

Methods (to be applied on instances)

  • describe (scripted, public)

     <instance of nsmcp::CodexQuestionBackend[i]> describe

    Testcases:
    No testcase defined.
    return [dict create backend codex model ${:model} timeout ${:timeout}]
  • run (scripted, public)

     <instance of nsmcp::CodexQuestionBackend[i]> run question state \
        emit
    Parameters:
    question (required)
    state (required)
    emit (required)

    Testcases:
    No testcase defined.
    set runner [::nsmcp::CodexQuestionRun new -backend [self] -emit $emit]
    try {
        return [$runner run $question $state]
    } finally {
        $runner destroy
    }