awslabs / awslabs/agentcore-samples

01-tutorials - [Bug] condition never ends

Open
#402 0 comments 0 reactions 1 assignee Claimed by @akshseh View on GitHub
01-tutorials 02-AgentCore-gateway bug
Dominant language
Python
Stars
3.4k
Forks
1.3k
Avg merge
1d 22h
Merged PRs (30d)
30

Description

**In which component is this bug present?**

- [ ] 01-AgentCore-runtime
- [x] 02-AgentCore-gateway
- [ ] 03-AgentCore-identity
- [ ] 04-AgentCore-memory
- [ ] 05-AgentCore-tools
- [ ] 06-AgentCore-observability
- [ ] 07-AgentCore-E2E

If you are reporting multiple bugs, please create a separate issue for each. For documentation improvements, use the documentation improvement issue type.

**Bug Description**
A clear and concise description of the bug.
```
if-statement in the below loop checks for the wrong variable

import time
# Retrieve semantic memories (factual information)
while True:
semantic_memories = memory_client.retrieve_memories(
memory_id=memory_id,
namespace=f"support/customer/{CUSTOMER_ID}/semantic",
query="information on the technical support issue"
)
print("🧠 AgentCore Memory identified these factual details from conversations:")
print("=" * 80)
if memories:
break
time.sleep(10)
```

**Screenshots**
If applicable, add screenshots to help explain your problem.
```
Please provide screenshots here.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.