Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions solution-architecture/ai-interview-agent/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
__pycache__
*.pyc
*.pyo
*.pyd
.Python
env
pip-log.txt
pip-delete-this-directory.txt
.tox
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.log
.git
.mypy_cache
.pytest_cache
.hypothesis

.DS_Store
.vscode
*.swp
*.swo

.env
node_modules
.dockerignore
Dockerfile
README.md
16 changes: 16 additions & 0 deletions solution-architecture/ai-interview-agent/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# EC2 Configuration
PUBLIC_IP=your.public.ip.address

# LiveKit Configuration
LIVEKIT_URL=wss://your-livekit-server.com
LIVEKIT_API_KEY=your_api_key
LIVEKIT_API_SECRET=your_api_secret

# AWS Configuration
AWS_REGION=us-east-1
AWS_ACCESS_KEY_ID=your_access_key
AWS_SECRET_ACCESS_KEY=your_secret_key

# Bedrock Configuration
BEDROCK_REGION=us-east-1
NOVA_SONIC_MODEL_ID=amazon.nova-sonic-v1:0
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: Lint

on:
push:
branches: [master]
pull_request:
branches: [master]

permissions:
contents: read

env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true

jobs:
lint-ui:
name: Lint UI (ESLint)
runs-on: ubuntu-latest
defaults:
run:
working-directory: src/ui
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
cache-dependency-path: src/ui/package-lock.json

- run: npm ci

- name: Run ESLint
run: |
npx eslint --ext .js,.jsx,.ts,.tsx . --format stylish --output-file eslint-report.txt || true
npx eslint --ext .js,.jsx,.ts,.tsx . --format json --output-file eslint-report.json || true
cat eslint-report.txt

- name: Upload ESLint Report
if: always()
uses: actions/upload-artifact@v4
with:
name: eslint-report
path: |
src/ui/eslint-report.*
retention-days: 30

lint-python:
name: Lint Python (flake8)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.13"

- run: pip install flake8

- name: Run flake8
run: |
flake8 src/agentcore/ src/web/ src/lambda/evaluate_interview.py \
--max-line-length 120 \
--exclude=__pycache__,venv,venvagentcore,.eggs,*.egg \
--format=default \
--output-file=flake8-report.txt || true
cat flake8-report.txt

- name: Upload flake8 Report
if: always()
uses: actions/upload-artifact@v4
with:
name: flake8-report
path: flake8-report.txt
retention-days: 30
77 changes: 77 additions & 0 deletions solution-architecture/ai-interview-agent/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# Virtual Environments
venv/
venvagentcore/
ENV/
env/
.venv

# Environment variables
.env
.env.local

# IDE
.vscode/
.idea/
*.swp
*.swo
*~

# OS
.DS_Store
Thumbs.db

# Logs
*.log

# AgentCore
.bedrock_agentcore/
.room_name

# SSL certificates and private keys
ssl/*.key
ssl/*.pem

# Docker
*.tar.gz

# Lambda layers (third-party dependencies)
src/lambda/python/PIL/
src/lambda/python/pillow*/
src/lambda/python/fontTools/
src/lambda/python/fonttools*/
src/lambda/python/fpdf/
src/lambda/python/fpdf2*/
src/lambda/python/defusedxml/
src/lambda/python/defusedxml*/
src/lambda/*.zip

# Lint reports
src/ui/eslint-report.*

# Draft docs
docs/blog-draft-*
docs/mentor-*
*.docx
DEPENDENCY_FIXES.md
5 changes: 5 additions & 0 deletions solution-architecture/ai-interview-agent/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Code of Conduct

This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
opensource-codeofconduct@amazon.com with any additional questions or comments.
57 changes: 57 additions & 0 deletions solution-architecture/ai-interview-agent/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Contributing Guidelines

Thank you for your interest in contributing to our project. Whether it's a bug report, new feature, correction, or additional
documentation, we greatly value feedback and contributions from our community.

Please read through this document before submitting any issues or pull requests to ensure we have all the necessary
information to effectively respond to your bug report or contribution.

## Reporting Bugs/Feature Requests

We welcome you to use the GitHub issue tracker to report bugs or suggest features.

When filing an issue, please check existing open, or recently closed, issues to make sure somebody else hasn't already
reported the issue. Please try to include as much information as you can. Details like these are incredibly useful:

- A reproducible test case or series of steps
- The version of our code being used
- Any modifications you've made relevant to the bug
- Anything unusual about your environment or deployment

## Contributing via Pull Requests

Contributions via pull requests are much appreciated. Before sending us a pull request, please ensure that:

1. You are working against the latest source on the _main_ branch.
2. You check existing open, and recently merged, pull requests to make sure someone else hasn't addressed the problem already.
3. You open an issue to discuss any significant work - we would hate for your time to be wasted.

To send us a pull request, please:

1. Fork the repository.
2. Modify the source; please focus on the specific change you are contributing. If you also reformat all the code, it will be hard for us to focus on your change.
3. Ensure local tests pass.
4. Commit to your fork using clear commit messages.
5. Send us a pull request, answering any default questions in the pull request interface.
6. Pay attention to any automated CI failures reported in the pull request, and stay involved in the conversation.

GitHub provides additional document on [forking a repository](https://help.github.com/articles/fork-a-repo/) and
[creating a pull request](https://help.github.com/articles/creating-a-pull-request/).

## Finding contributions to work on

Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start.

## Code of Conduct

This project has adopted the [Amazon Open Source Code of Conduct](https://aws.github.io/code-of-conduct).
For more information see the [Code of Conduct FAQ](https://aws.github.io/code-of-conduct-faq) or contact
opensource-codeofconduct@amazon.com with any additional questions or comments.

## Security issue notifications

If you discover a potential security issue in this project we ask that you notify AWS/Amazon Security via our [vulnerability reporting page](http://aws.amazon.com/security/vulnerability-reporting/). Please do **not** create a public github issue.

## Licensing

See the [LICENSE](LICENSE) file for our project's licensing. We will ask you to confirm the licensing of your contribution.
14 changes: 14 additions & 0 deletions solution-architecture/ai-interview-agent/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading
Loading