Repository navigation
Conversation
…raph Adds the actual container (Dockerfile.agentcore-runtime) and a __main__ entrypoint for the existing (previously unused) deployment.py scaffolding, so run_report_generation() can be hosted by AWS Bedrock AgentCore Runtime instead of always running in-process inside cpu-worker. Only base dependencies are needed (no torch/sentence-transformers extra) - this container never computes KURE embeddings itself, it goes through the Evidence Research Agent's AgentCore Gateway path for that. Verified locally: built the image, ran it, and confirmed both AWS's required endpoints work - GET /ping returns Healthy, and POST /invocations correctly routes through agentcore_entrypoint -> runtime_entrypoint.invoke() -> run_report_generation(), failing cleanly with a proper JSON error (not a raw crash) when it can't reach a database (expected in this standalone container test, no DB configured). Infra (ECR, aws_bedrockagentcore_agent_runtime, IAM, and actually wiring cpu-worker to invoke this instead of running in-process) still needed - separate PR.
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.
개요
기존에 있었지만 아무도 안 쓰던 `deployment.py` 스캐폴딩(`agentcore_entrypoint`, `create_agentcore_runtime`)을 실제로 돌아가는 컨테이너로 완성합니다. 이게 있어야 `run_report_generation()`을 cpu-worker 안에서 in-process로 돌리는 대신 AWS Bedrock AgentCore Runtime이 호스팅하게 만들 수 있습니다.
검증
로컬에서 실제로 이미지 빌드 + 컨테이너 실행 + 두 엔드포인트 다 호출해서 확인:
남은 작업 (Infra repo, 별도 PR)
Test plan