Team A: 에이전트 코드
분석 대상
TroubleshootingAgent 클래스 전체 구조
from strands import Agent
from strands.models import BedrockModel
from strands.tools.mcp import MCPClient
class TroubleshootingAgent:
def __init__(self, bearer_token, memory_hook=None,
bedrock_model_id="global.anthropic.claude-sonnet-4-20250514-v1:0",
system_prompt=None):초기화 단계 (라인별 분석)
단계
코드
설명
BedrockModel 설정
MCP 클라이언트 초기화
Agent 생성자 파라미터
파라미터
타입
설명
스트리밍 응답
토론 질문
마지막 업데이트