class BedrockLlamaChatModelResponse implements BedrockChatModelResponse {
    
    private String generation;
    private int prompt_token_count;
    private int generation_token_count;
    private String stop_reason;

    @Override
    public String getOutputText() {
        return generation;
    }

    @Override
    public FinishReason getFinishReason() {<FILL_FUNCTION_BODY>}

    @Override
    public TokenUsage getTokenUsage() {
        return new TokenUsage(prompt_token_count, generation_token_count);
    }
}

        switch (stop_reason) {
            case "stop":
                return FinishReason.STOP;
            case "length":
                return FinishReason.LENGTH;
            default:
                throw new IllegalArgumentException("Unknown stop reason: " + stop_reason);
        }
    
<no_super_class>