nsmcp::QuestionBackend method toolCallResult (public)

 <instance of nsmcp::QuestionBackend[i]> toolCallResult item

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

Parameters:
item (required)

Testcases:
No testcase defined.
Source code:
if {![catch {ns_json triples gettype -path error -- $item} type] && $type ne "null"} {
    set error [ns_json triples getvalue -output triples -path error -- $item]
    return [ns_json value -- [list {} object [list isError boolean true error $type $error]]]
}
if {[catch {ns_json triples gettype -path result -- $item} type]} {return null}
return [:canonicalResult [ns_json value -- [list {} $type [ns_json triples getvalue -output triples -path result -- $item]]]]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: