-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds TinyRA as a sample app #1221
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1221 +/- ##
===========================================
+ Coverage 37.55% 49.66% +12.10%
===========================================
Files 77 77
Lines 7719 7780 +61
Branches 1657 1803 +146
===========================================
+ Hits 2899 3864 +965
+ Misses 4574 3591 -983
- Partials 246 325 +79
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Love to see the TUI in the sample apps. One natural question is if it will support the same "skills" format at AutoGenStudio -- it would be great if it does. |
|
GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
---|---|---|---|---|---|
10404662 | Triggered | Generic CLI Secret | d7ea410 | .github/workflows/dotnet-release.yml | View secret |
10404662 | Triggered | Generic CLI Secret | 9a484d8 | .github/workflows/dotnet-build.yml | View secret |
10404695 | Triggered | Generic High Entropy Secret | abad9ff | test/oai/test_utils.py | View secret |
10404695 | Triggered | Generic High Entropy Secret | c7bb588 | test/oai/test_utils.py | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secrets safely. Learn here the best practices.
- Revoke and rotate these secrets.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
This PR is against AutoGen 0.2. AutoGen 0.2 has been moved to the 0.2 branch. Please rebase your PR on the 0.2 branch or update it to work with the new AutoGen 0.4 that is now in main. |
@gagb do we still need this one? |
closing as stale. please reopen if you would like to update |
This pull request mainly focuses on the setup and development of a new application called
TinyRA
. The changes include the creation of a Docker environment for the application, the addition of necessary dependencies, and the creation of essential files and directories for the application.Docker environment setup:
.devcontainer/tinyRA/Dockerfile
: Created a Dockerfile for setting up the Python development environment. This includes the installation of essential packages and tools likenpm
,tmux
, andyarn
..devcontainer/tinyRA/devcontainer.json
: Created adevcontainer.json
file that specifies the Dockerfile to use, the command to update the content, and the necessary VS Code extensions for the development environment.Application setup:
samples/apps/tinyRA/README.md
: Created a README file to provide information about theTinyRA
application, including installation and usage instructions.samples/apps/tinyRA/requirements.txt
: Added necessary Python packages for the application, includingtextual[syntax]
,tiktoken
,pyautogen
, andaiosqlite
.samples/apps/tinyRA/setup.py
: Created a setup file to specify the application's metadata, dependencies, and entry points.samples/apps/tinyRA/tinyra/__init__.py
: Initialized thetinyra
module by importing therun_app
function from thetui
module.Application development:
samples/apps/tinyRA/tinyra/tui.css
: Created a CSS file for styling the terminal user interface of the application.samples/apps/tinyRA/tinyra/version.py
: Defined the version of thetinyra
module.samples/apps/tinyRA/tinyra/tui.py
: Defines the main logic of the app: It implements three screen, the main screen that displays the chat and then also:App
: The main chat display is a container that displays the chat history, arranged in a chronological order, fetched from a database. It includes a reactive markdown widget for displaying assistant messages and a regular markdown widget for displaying user messages, both of which are updated dynamically as new messages are added (or edited) to the chat.QuitScreen
: This is a modal screen that provides the user with an option to quit the application. It may include a confirmation dialog and buttons for confirming or canceling the action.SettingsScreen
: This is a modal screen that allows the user to view and modify their user settings, tool settings, and history. Major components could include:UserSettings
: Allows users to modify personal data, account settings, and security settings.ToolSettings
: Allows users to configure the tools they use within the application.History
: Displays the user's activity history on the application.Limitations
Current app encounters some bugs because of #1824.
Tasks Based on Review Feedback
Refactor will be in the following branch: TODO
makedirs
correctly