public boolean isFunctionCall() {
        return getAccumulatedMessage().getFunctionCall() != null && getAccumulatedMessage().getFunctionCall().getName() != null;
    }
Checks if the accumulated message contains a function call.

@return true if the accumulated message contains a function call, false otherwise.
service/src/main/java/com/theokanning/openai/service/ChatMessageAccumulator.java