428. 에이전트 메모리 활성화 (Enable agent memory)
- 원문: English
- 위치: Additional capabilities › Agents: Automate tasks › Retain conversational context using memory › Enable agent memory
한 줄 요약
CreateAgent/UpdateAgent의 memoryConfiguration에 SESSION_SUMMARY를 켜고 보관 기간(storageDays, 1~365일, 기본 30일)과 최근 세션 수(maxRecentSessions)를 지정합니다.
핵심 내용
- ⚠️ 메모리를 쓸 수 없는 모델: Amazon Titan Text Premier, Anthropic Claude Instant. 그 외 모델은 가능(리전별 모델 지원 여부 확인).
- 콘솔: Edit in Agent Builder → 모델 선택 → Memory 섹션
| 항목 | 설명 |
|---|---|
| Enable session summarization | Enabled |
| Memory duration (선택) | 1~365일, 기본 30일 |
| Maximum number of recent sessions | 메모리로 저장할 최근 세션 최대 수 |
| Session summarization prompt (선택) | View and edit로 요약 프롬프트 수정 |
- 설정 후 Save → Prepare.
API
"memoryConfiguration": {
"enabledMemoryTypes": [ "SESSION_SUMMARY" ],
"storageDays": 30,
"sessionSummaryConfiguration": {
"maxRecentSessions": 5
}
}
- 위 값(30, 5)은 원문 예시 값입니다.
- ⚠️ 메모리를 켜 놓고 호출 시
memoryId를 안 넘기면 그 턴은 메모리에 저장되지 않습니다.
SA 관점
maxRecentSessions가 클수록 매 세션 시작 시 로드되는 요약이 늘어 입력 토큰이 증가합니다. 비용·품질을 보고 조정하세요.