Skip to content

feat: AWS AgentCore Memory Outbound Connector implementation#6498

Draft
mathieu-stennier wants to merge 19 commits intomainfrom
mathieu-aws-agent-core-memory-long
Draft

feat: AWS AgentCore Memory Outbound Connector implementation#6498
mathieu-stennier wants to merge 19 commits intomainfrom
mathieu-aws-agent-core-memory-long

Conversation

@mathieu-stennier
Copy link
Copy Markdown
Contributor

Description

Related issues

closes #

Checklist

  • Backport labels are added if these code changes should be backported. No backport label is added to the latest
    release, as this branch will be rebased onto main before the next release. Example backport labels:
    • backport stable/8.8: for changes that should be included in the next 8.8.x release.
    • or backport release-8.8.7: for changes that should be included in the specific release 8.8.7, and this
      release has already been created. The release branch will be merged back into stable/8.8 later, so the change
      will be included in future 8.8.x releases as well.
  • Tests/Integration tests for the changes have been added if applicable.

mathieu-stennier and others added 11 commits February 10, 2026 20:54
…icai/aiagent/memory/conversation/awsagentcore/mapping/README.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…icai/aiagent/memory/conversation/awsagentcore/README.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…icai/aiagent/memory/conversation/awsagentcore/README.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…icai/aiagent/memory/conversation/awsagentcore/README.md

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…icai/autoconfigure/AgenticAiConnectorsAutoConfiguration.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Comment on lines +171 to +172
ArgumentCaptor<DocumentCreationRequest> captor =
ArgumentCaptor.forClass(DocumentCreationRequest.class);

Check notice

Code scanning / CodeQL

Unread local variable Note test

Variable 'ArgumentCaptor captor' is never read.

Copilot Autofix

AI 2 months ago

In general, to fix an unread local variable in a test, either remove the variable declaration if it is unnecessary, or use it in assertions/verification if it was meant to validate behavior. Here, the argument captor is not used at all; the test already validates the constructed DocumentCreationRequest through JSON parsing in spyFactory. The simplest, safest fix is to delete the unused ArgumentCaptor<DocumentCreationRequest> captor declaration.

Concretely, in connectors/aws/aws-agentcore-memory/src/test/java/io/camunda/connector/aws/agentcore/memory/AwsAgentCoreMemoryExecutorTest.java, in the shouldFlattenContentFromText test, remove lines 171–172:

ArgumentCaptor<DocumentCreationRequest> captor =
    ArgumentCaptor.forClass(DocumentCreationRequest.class);

No additional methods, imports, or definitions are required, and no other code in this method depends on captor.

Suggested changeset 1
connectors/aws/aws-agentcore-memory/src/test/java/io/camunda/connector/aws/agentcore/memory/AwsAgentCoreMemoryExecutorTest.java

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/connectors/aws/aws-agentcore-memory/src/test/java/io/camunda/connector/aws/agentcore/memory/AwsAgentCoreMemoryExecutorTest.java b/connectors/aws/aws-agentcore-memory/src/test/java/io/camunda/connector/aws/agentcore/memory/AwsAgentCoreMemoryExecutorTest.java
--- a/connectors/aws/aws-agentcore-memory/src/test/java/io/camunda/connector/aws/agentcore/memory/AwsAgentCoreMemoryExecutorTest.java
+++ b/connectors/aws/aws-agentcore-memory/src/test/java/io/camunda/connector/aws/agentcore/memory/AwsAgentCoreMemoryExecutorTest.java
@@ -168,8 +168,6 @@
     when(client.retrieveMemoryRecords(any(RetrieveMemoryRecordsRequest.class)))
         .thenReturn(sdkResponse);
 
-    ArgumentCaptor<DocumentCreationRequest> captor =
-        ArgumentCaptor.forClass(DocumentCreationRequest.class);
     Function<DocumentCreationRequest, Document> spyFactory =
         req -> {
           // Verify JSON content
EOF
@@ -168,8 +168,6 @@
when(client.retrieveMemoryRecords(any(RetrieveMemoryRecordsRequest.class)))
.thenReturn(sdkResponse);

ArgumentCaptor<DocumentCreationRequest> captor =
ArgumentCaptor.forClass(DocumentCreationRequest.class);
Function<DocumentCreationRequest, Document> spyFactory =
req -> {
// Verify JSON content
Copilot is powered by AI and may make mistakes. Always verify output.
@ztefanie
Copy link
Copy Markdown
Collaborator

@mathieu-stennier Are you still working on this or can we close it?

@maff maff force-pushed the mathieu-aws-agent-core-memory branch 8 times, most recently from e19f8b4 to 4d7041f Compare April 14, 2026 10:13
Base automatically changed from mathieu-aws-agent-core-memory to main April 14, 2026 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants