Method: projects.locations.collections.engines.assistants.agents.files.import

Agent에 파일을 가져옵니다. 현재는 노코드 에이전트만 지원됩니다.

HTTP 요청

POST https://discoveryengine.googleapis.com/v1alpha/{parent=projects/*/locations/*/collections/*/engines/*/assistants/*/agents/*}/files:import

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

경로 매개변수

파라미터
parent

string

필수 항목입니다. Agent의 리소스 이름입니다. 형식: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}

요청 본문

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

JSON 표현
{
  "fileName": string,
  "mimeType": string
}
필드
fileName

string

필수 항목. 파일 이름입니다.

mimeType

string

선택사항. 파일의 콘텐츠 유형입니다(https://www.iana.org/assignments/media-types/media-types.xhtml 참고).

데이터 소스에서 콘텐츠 유형을 제공하지 않는 경우 이 필드는 필수입니다.

응답 본문

AgentService.ImportAgentFile 메서드에 대한 응답입니다.

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

JSON 표현
{
  "agentFile": {
    object (AgentFile)
  }
}
필드
agentFile

object (AgentFile)

가져온 AgentFile입니다.

승인 범위

다음 OAuth 범위 중 하나가 필요합니다.

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

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

AgentFile

각 호출에서 에이전트가 내부적으로 컨텍스트로 사용하는 파일을 설명합니다.

JSON 표현
{
  "name": string,
  "fileName": string,
  "mimeType": string
}
필드
name

string

식별자. 파일의 리소스 이름입니다. 형식: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}/agents/{agent}/files/{file}

fileName

string

필수 항목입니다. 파일 이름입니다.

mimeType

string

변경할 수 없습니다. 파일의 콘텐츠 유형입니다.