Handle a built-in Qveris tool call from an LLM response.
- Parameters:
- func_name – The name of the function/tool to call
- func_args – The arguments parsed from the LLM response
- session_id – Optional session ID for tracking
- Returns:
- result: the tool output (None if not handled)
- is_error: True if an error occurred
- handled: True if this was a Qveris tool and was processed
- Return type:
Tuple of (result, is_error, handled) where
Notes
- params_to_tool may be either a dict (canonical) or a JSON string (legacy).
- If func_name is not a Qveris built-in, (None, False, False) is returned so that callers can route to their own tool handlers.