

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 추적 확인
<a name="trace-view"></a>

다음은 추적을 확인하는 방법을 설명합니다. 원하는 방법의 탭을 선택한 후 다음 단계를 따릅니다.

------
#### [ Console ]

**에이전트와의 대화 중에 추적을 확인하는 방법**

Amazon Bedrock 콘솔을 사용할 권한이 있는 IAM 자격 증명으로 AWS Management Console에 로그인합니다. 그 다음 [https://console.aws.amazon.com/bedrock](https://console.aws.amazon.com/bedrock)에서 Amazon Bedrock 콘솔을 엽니다.

1. **에이전트** 섹션의 에이전트 목록에서 테스트할 에이전트의 링크를 선택합니다.

1. 오른쪽 창에 **테스트** 창이 나타납니다.

1. 메시지를 입력하고 **실행**을 선택합니다. 응답이 생성되는 동안 또는 생성이 완료된 후 **트레이스 보기**를 선택합니다.

1. 에이전트가 오케스트레이션을 수행할 때 각 **단계의** 추적을 실시간으로 확인할 수 있습니다.

------
#### [ API ]

추적을 확인하려면 [Agents for Amazon Bedrock 런타임 엔드포인트](https://docs.aws.amazon.com/general/latest/gr/bedrock.html#bra-rt)를 사용하여 [https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html) 요청을 전송하고 `enableTrace` 필드를 `TRUE`로 설정합니다. 기본적으로 추적은 비활성화되어 있습니다. 예제 코드의 경우 [애플리케이션에서 에이전트 간접 호출](agents-invoke-agent.md) 섹션을 참조하세요.

추적을 활성화하면 [https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html) 응답에서 스트림의 각 `chunk`에 [https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_TracePart.html](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_TracePart.html) 객체에 매핑되는 `trace` 필드가 함께 표시됩니다. [https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_TracePart.html](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_TracePart.html) 내에는 [https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Trace.html](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Trace.html) 객체에 매핑되는 `trace` 필드가 있습니다.

------