Skip to content
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

S3 Workspaces #1352

Merged
merged 22 commits into from
Jan 4, 2025
Merged

S3 Workspaces #1352

merged 22 commits into from
Jan 4, 2025

Conversation

Josh-XT
Copy link
Owner

@Josh-XT Josh-XT commented Jan 4, 2025

The goal in this PR is to switch from locally persisted agent workspaces to putting them in S3 storage. Anyone deploying locally will be able to use a minio container, which will be added to the docker-compose files for anyone running locally. This PR will effectively enable deploying AGiXT on cloud services hosts such as AWS or Digital Ocean without the need to persist files.

This pull request introduces several significant updates to the agixt project, focusing on Docker configuration, agent management, and application initialization. The changes include modifications to Docker-related files, enhancements to agent handling, and improvements to the application startup process.

Docker Configuration Updates:

  • Dockerfile: Added a step to run Transcription.py during the build process and updated the entry point to use DB.py.
  • docker-compose-dev.yml and docker-compose-nostreamlit-dev.yml: Updated volumes and environment variables for better configuration management, including the addition of MinIO service for storage. [1] [2] [3] [4]
  • docker-compose-nostreamlit.yml: Added MinIO service configuration for non-streamlit environments.

Agent Management Enhancements:

  • agixt/Agent.py: Improved agent name handling to avoid duplicates by appending a number if the agent already exists.

Application Initialization Improvements:

  • agixt/app.py: Refactored the application startup to include workspace management, task monitoring, and ngrok tunnel setup. Added signal handlers for graceful shutdown and a new route for serving files from the workspace. [1] [2] [3] [4] [5]

Miscellaneous Changes:

  • agixt/Globals.py: Enhanced the getenv function to accept a default value parameter. [1] [2]
  • agixt/Transcription.py and agixt/providers/default.py: Updated the transcription model initialization to use int8 compute type for improved performance. [1] [2]
  • Removed the obsolete launch-backend.sh script as its functionality has been integrated into the main application.

These changes collectively improve the robustness, configurability, and maintainability of the agixt project.

agixt/Workspaces.py Fixed Show fixed Hide fixed
agixt/Workspaces.py Fixed Show fixed Hide fixed
agixt/Workspaces.py Fixed Show fixed Hide fixed
agixt/Workspaces.py Fixed Show fixed Hide fixed
agixt/Workspaces.py Fixed Show fixed Hide fixed
agixt/app.py Fixed Show fixed Hide fixed
agixt/app.py Fixed Show fixed Hide fixed
agixt/app.py Fixed Show fixed Hide fixed
@Josh-XT Josh-XT marked this pull request as ready for review January 4, 2025 23:10
@Josh-XT Josh-XT merged commit f9be745 into main Jan 4, 2025
7 checks passed
@Josh-XT Josh-XT deleted the s3-workspace branch January 4, 2025 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant