PromptBlockedException

class PromptBlockedException : FirebaseVertexAIException


A request was blocked for some reason.

See the response's promptFeedback.blockReason for more information.

Summary

Public constructors

PromptBlockedException(
    response: GenerateContentResponse,
    cause: Throwable?
)

Public properties

GenerateContentResponse

the full server response for the request.

Inherited properties

From kotlin.Throwable

Public constructors

PromptBlockedException

PromptBlockedException(
    response: GenerateContentResponse,
    cause: Throwable? = null
)

Public properties

response

val responseGenerateContentResponse

the full server response for the request.