Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(bedrock): update cdk version + agent memory #1000

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

aws-rafams
Copy link
Contributor

Fixes #997


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the project license.

Copy link

codecov bot commented Feb 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.95%. Comparing base (778deee) to head (465655f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1000      +/-   ##
==========================================
+ Coverage   93.91%   93.95%   +0.04%     
==========================================
  Files          62       63       +1     
  Lines       18023    18148     +125     
  Branches      570      579       +9     
==========================================
+ Hits        16926    17051     +125     
  Misses       1097     1097              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@krokoko
Copy link
Collaborator

krokoko commented Feb 28, 2025

Tested deploying an agent with memory:

const agent = new bedrock.Agent(this, 'Agent', {
      foundationModel: bedrock.BedrockFoundationModel.ANTHROPIC_CLAUDE_3_5_SONNET_V1_0,
      instruction: 'You are a helpful and friendly agent that answers questions about literature.',
      memory: bedrock.Memory.sessionSummary({
        maxRecentSessions: 10,
        memoryDurationDays: 20,
      }),
      userInputEnabled: true,
      shouldPrepareAgent:true
    });
image image image

When not specifying memory, it is disabled as expected:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(bedrock): Agent Memory Bedrock agent: custom orchestration, memory and multi agent support
3 participants