Method: projects.locations.templates.sanitizeUserPrompt

사용자 프롬프트를 정리합니다.

HTTP 요청


URL은 gRPC 트랜스코딩 구문을 사용합니다.

경로 매개변수

매개변수
name

string

필수 입력란입니다. 템플릿의 리소스 이름을 나타냅니다(예: name=projects/sample-project/locations/us-central1/templates/templ01).

요청 본문

요청 본문에는 다음과 같은 구조의 데이터가 포함됩니다.

JSON 표현
{
  "userPromptData": {
    object (DataItem)
  }
}
필드
userPromptData

object (DataItem)

필수 입력란입니다. 삭제할 사용자 메시지 데이터입니다.

응답 본문

정리된 사용자 프롬프트 응답

성공한 경우 응답 본문은 다음과 같은 구조의 데이터를 포함합니다.

JSON 표현
{
  "sanitizationResult": {
    object (SanitizationResult)
  }
}
필드
sanitizationResult

object (SanitizationResult)

출력 전용입니다. 정리 결과

승인 범위

다음 OAuth 범위가 필요합니다.

  • https://www.googleapis.com/auth/cloud-platform

자세한 내용은 Authentication Overview를 참고하세요.

IAM 권한

name 리소스에 대해서는 다음 IAM 권한이 필요합니다.

  • modelarmor.templates.useToSanitizeUserPrompt

자세한 내용은 IAM 문서를 참조하세요.