Conversation
This comment was marked as outdated.
This comment was marked as outdated.
c025e1c to
a82de42
Compare
a1c29c5 to
bbeeae3
Compare
5e57b6b to
da4afe0
Compare
da4afe0 to
b0806f8
Compare
kaleko
reviewed
Mar 24, 2026
kaleko
reviewed
Mar 24, 2026
kaleko
approved these changes
Mar 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds AG-UI protocol support to FAST with two new agent patterns (
agui-strands-agent,agui-langgraph-agent), a shared frontend parser, and restructures the project layout for consistency across all patterns.Changes
Commit 1: Restructure agent patterns and shared modules
strands-single-agentandlanggraph-single-agentwith consistent structure — each pattern now has its owntools/module (gateway,code_interpreter) and imports shared utilities fromutils/==inrequirements.txttool_call_chunksfor tool input streamingCOPYpaths to match current directory layoutCommit 2: Add AG-UI agent patterns and frontend support
agui-strands-agent: Strands agent wrapped withag-ui-strands(StrandsAgent). Creates agent per-request to ensure correct Memory scoping and fresh MCP connections.agui-langgraph-agent: LangGraph agent wrapped withcopilotkit(LangGraphAGUIAgent). UsesActorAwareLangGraphAgentsubclass to rebuild the graph per-request for fresh Gateway tokens.parsers/agui.ts): Maps AG-UI events (TEXT_MESSAGE_CONTENT,TOOL_CALL_START, etc.) to the sharedStreamEventtypes. Auto-selected for any pattern withagui-prefix.AgentCoreClient.invoke()automatically sendsRunAgentInput(threadId, messages, runId) foragui-*patterns.docs/AGUI_INTEGRATION.md— covers architecture, patterns, frontend integration, deployment, and CopilotKit reference.@aws-cdk/aws-bedrock-agentcore-alpha,@aws-cdk/aws-bedrock-alpha)backend-stack.tsandconfig.yamlKey design decisions
BedrockAgentCoreAppas the entrypoint (not standalone FastAPI), so AgentCore Runtime headers (WorkloadAccessToken, Authorization, Session-Id) are available for Gateway auth, Memory, and secure user identity extraction from JWT.parseAguiChunkparser handles both.Testing
strands-single-agent,langgraph-single-agent,agui-strands-agent, andagui-langgraph-agentpatterns end-to-end (CDK deploy → AgentCore Runtime → Amplify frontend)