aws-samples / aws-samples/sample-ai-agent-accelerator

Stability and API correctness fixes

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HCL
Stars
29
Forks
11
PR merge metrics
No merged PRs in 30d

Description

## Problem
There are a couple of API correctness issues that can lead to runtime failures or degraded responses:

- `/api/ask` can fail because `user_id` is referenced before assignment.
- `ask_internal()` clears `sources` after orchestration, so any returned citations/tool sources are dropped.

## Scope
Track a focused set of fixes as small, reviewable PRs:

- [ ] PR 1: fix undefined `user_id` in `/api/ask` and preserve `sources` returned by orchestration
- [ ] PR 2: tighten request validation and return consistent API error responses
- [ ] PR 3: harden conversation event parsing and improve diagnostic logging

## Why this matters
These changes improve correctness and reliability while keeping risk low by scoping each PR to one concern.

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.