에이전트 초기화 흐름

TroubleshootingAgent 클래스(agent_config/agent.py)의 초기화 과정입니다.

초기화 순서

핵심 코드

MCP 클라이언트 연결

구성 요소
역할

MCPClient

MCP 프로토콜 클라이언트 래퍼

streamablehttp_client

HTTP 기반 스트리밍 연결

gateway_url

AgentCore Gateway 엔드포인트

Bearer Token

Cognito에서 발급받은 Access Token

System Prompt의 도구 사용 규칙

마지막 업데이트