feat(harness): add Gemini and OpenAI model-provider samples#1638
Open
di-brasil wants to merge 2 commits into
Open
feat(harness): add Gemini and OpenAI model-provider samples#1638di-brasil wants to merge 2 commits into
di-brasil wants to merge 2 commits into
Conversation
Two AgentCore CLI harness samples under 01-features/01-harness/01-advanced-examples: - 08-gemini-model-provider: Gemini (gemini-2.5-flash) via the gemini provider, with an API key stored in AgentCore Identity. - 09-openai-model-provider: OpenAI GPT-OSS (openai.gpt-oss-20b-1:0) via the bedrock provider (IAM auth, no API key). Each includes a README with the verified CLI flow, a runnable demo.sh (account ID masked for recording), and a demo GIF. Tested end-to-end on @aws/agentcore@1.0.0-preview.12 in us-west-2.
|
Latest scan for commit: Security Scan ResultsScan Metadata
SummaryScanner ResultsThe table below shows findings by scanner, with status based on severity thresholds and dependencies: Column Explanations: Severity Levels (S/C/H/M/L/I):
Other Columns:
Scanner Results:
Severity Thresholds (Thresh Column):
Threshold Source: Values in parentheses indicate where the threshold is configured:
Statistics calculation:
|
These were internal GIF recording notes that should not ship in the public sample tree. Removing from both the gemini and openai model-provider examples.
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 two AgentCore CLI harness samples that show how to run a harness on
non-default model providers, under
01-features/01-harness/01-advanced-examples/:08-gemini-model-provider— Google Gemini (gemini-2.5-flash) via thegeminiprovider, with the API key stored in AgentCore Identity.09-openai-model-provider— OpenAI GPT-OSS (openai.gpt-oss-20b-1:0)via the
bedrockprovider (served through Amazon Bedrock; IAM auth, no API key).Both were tested end-to-end on
@aws/agentcore@1.0.0-preview.12inus-west-2(deploy + live invoke).
What each sample includes
create --no-agent→add credential/add harness→ set deployment target →deploy→invoke),prerequisites, cleanup, and notes.
built for screen recording. The AWS account ID is masked as
<ACCOUNT>throughout (including inside ARNs), and the Gemini API key is never printed.
demo.shrunning the full flow.Notes
access for the GPT-OSS model (no key).
(IAD / PDX / SYD / FRA).
.gitignorein each folder keeps localdemo.env/*.movout of git.Testing
agentcore deploy+agentcore invokerun end-to-end for both providers.