feat(engine): add RemoteAgentFlowEngine for remote agent runtimes#441
Open
luyuzhe111 wants to merge 7 commits intorllm-org:mainfrom
Open
feat(engine): add RemoteAgentFlowEngine for remote agent runtimes#441luyuzhe111 wants to merge 7 commits intorllm-org:mainfrom
luyuzhe111 wants to merge 7 commits intorllm-org:mainfrom
Conversation
…lm-model-gateway in pyproject.toml
e52b185 to
31255f6
Compare
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
This PR adds the integration of AWS Bedrock AgentCore Runtime as a sandboxed remote agent runtime backend where agents and environments collocate. AgentCore Runtime handles isolation and auto-scaling to allow secure and parallel rollouts.
Type of change
What changed
is_validationflag.agentcoreas an extra dependency, addrllm-model-gatewayas a uv source to install in editable mode, and enable ruff line check (default is 88 chars, which results in numerous cosmetic wraps; changed to 120 to align with modern convention).Validation
pre-commit run --all-filespytest ...It seems there are a bunch of pre-commit errors from existing code. might need a separate PR to clean them up.
Validation details:
uv run pytest tests/engine/test_remote_runtime.py -vpassed.uv run pytest tests/integration/ -v -spassed locally withAGENTCORE_AGENT_ARN,AGENTCORE_S3_BUCKET,AGENTCORE_BASE_URL, andAGENTCORE_MODEL_IDset.bash examples/agentcore_math/train_agentcore_math_tinker.sh. The reward curves fromrllm-uiare attached below:Train:

Val:

Docs / examples