nsmcp::ToolRegistry method verifyQuestionPin (protected)

 <instance of nsmcp::ToolRegistry[i]> verifyQuestionPin context name

Defined in /usr/local/ns/tcl/nsmcp/01-tools.tcl

Parameters:
context (required)
name (required)

Testcases:
No testcase defined.
Source code:
if {![$context cget -questionRestricted]} return
set pins [$context cget -questionPins]
if {$name ni [::nsmcp::questionAllowedTools] || ![dict exists $pins $name] || [dict get $pins $name] ne [:fingerprint $name]} {
    return -code error -errorcode {NSMCP RPC -32602} "Question tool definition changed or tool was not pinned; start a new conversation"
}
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: