requestLLMOnlyCallingTools

Sends a request to the language model that enforces the usage of tools and retrieves the response.

This method:

  1. Validates that the session is active.

  2. Updates the prompt configuration to mark tool usage as required (ToolChoice.Required).

  3. Retrieves all generated messages (including potential Chain of Thought/Reasoning blocks).

  4. Filters the result to return the first Message.Tool.Call.

If no tool call is found (e.g., the model refused or asked a question), this method throws an exception.

Return

The tool call response from the language model.