nsmcp::questionResultDelivery (private)

 nsmcp::questionResultDelivery json limit source

Defined in /usr/local/ns/tcl/nsmcp/examples/nsmcp-openacs-api-docs.tcl

Bound and prepare a question backend result for delivery. @return Delivery fields.

Parameters:
json (required)
limit (required)
source (required)

Partial Call Graph (max 5 caller/called nodes):
Class ::nsmcp::ChatCompletionsRun Class ::nsmcp::ChatCompletionsRun (public) nsmcp::questionResultDelivery nsmcp::questionResultDelivery Class ::nsmcp::ChatCompletionsRun->nsmcp::questionResultDelivery Class ::nsmcp::CodexQuestionRun Class ::nsmcp::CodexQuestionRun (public) Class ::nsmcp::CodexQuestionRun->nsmcp::questionResultDelivery nsmcp::ChatCompletionsRun instproc invoke nsmcp::ChatCompletionsRun instproc invoke (protected) nsmcp::ChatCompletionsRun instproc invoke->nsmcp::questionResultDelivery nsmcp::CodexQuestionRun instproc receive nsmcp::CodexQuestionRun instproc receive (protected) nsmcp::CodexQuestionRun instproc receive->nsmcp::questionResultDelivery

Testcases:
No testcase defined.
Source code:
    set bytes [string length [encoding convertto utf-8 $json]]
    set omitted [expr {$bytes>$limit ? "true" : "false"}]
    set result [dict create result $json truncated $omitted displayOmitted $omitted  resultBytes $bytes resultSha256 [ns_crypto::md string -digest sha256 -binary -encoding hex -- [encoding convertto utf-8 $json]]  resultSource $source modelResultStatus [expr {$source eq "direct-api" ? "complete" : "unknown"}]]
    if {$omitted} {
        dict set result evidenceResult $json
        dict set result result {Result omitted from this page because it exceeds the configured display limit. Full inspection evidence is retained separately.}
    }
    return $result
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: