nsmcp::QuestionBackend object method toolTiming (public)
nsmcp::QuestionBackendtoolTiming event
Defined in /usr/local/ns/tcl/nsmcp/question-backend.tcl
Validate the duration and provenance of a tool event.
- Parameters:
- event (required)
- Backend tool event dictionary.
- Returns:
- Validated timing fields, or an empty dictionary if unavailable.
- Testcases:
- No testcase defined.
Source code: if {![dict exists $event durationMs] || ![dict exists $event durationSource]} { return {} } set value [dict get $event durationMs] set source [dict get $event durationSource] if {![string is wideinteger -strict $value] || $value<0 || $value>9007199254740991 || $source ni {codex-reported codex-observed api-observed}} { return {} } return [dict create durationMs $value durationSource $source]XQL Not present: Generic, PostgreSQL, Oracle
![[i]](/resources/acs-subsite/ZoomIn16.gif)