-
Notifications
You must be signed in to change notification settings - Fork 44.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/twinsant/Auto-GPT
- Loading branch information
Showing
132 changed files
with
12,591 additions
and
5,734 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,4 @@ rnd/autogpt_builder/.env.local | |
rnd/autogpt_server/.env | ||
rnd/autogpt_server/.venv/ | ||
|
||
rnd/market/.env |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,114 @@ | ||
This is a guide to setting up and running the AutoGPT Server and Builder. This tutorial will cover downloading the necessary files, setting up the server, and testing the system. | ||
|
||
https://github.com/user-attachments/assets/fd0d0f35-3155-4263-b575-ba3efb126cb4 | ||
|
||
1. Navigate to the AutoGPT GitHub repository. | ||
2. Click the "Code" button, then select "Download ZIP". | ||
3. Once downloaded, extract the ZIP file to a folder of your choice. | ||
|
||
4. Open the extracted folder and navigate to the "rnd" directory. | ||
5. Enter the "AutoGPT server" folder. | ||
6. Open a terminal window in this directory. | ||
7. Locate and open the README file in the AutoGPT server folder: [doc](./autogpt_server/README.md#setup). | ||
8. Copy and paste each command from the setup section in the README into your terminal. | ||
- Important: Wait for each command to finish before running the next one. | ||
9. If all commands run without errors, enter the final command: `poetry run app` | ||
10. You should now see the server running in your terminal. | ||
|
||
11. Navigate back to the "rnd" folder. | ||
12. Open the "AutoGPT builder" folder. | ||
13. Open the README file in this folder: [doc](./autogpt_builder/README.md#getting-started). | ||
14. In your terminal, run the following commands: | ||
``` | ||
npm install | ||
``` | ||
``` | ||
npm run dev | ||
``` | ||
15. Once the front-end is running, click the link to navigate to `localhost:3000`. | ||
16. Click on the "Build" option. | ||
17. Add a few blocks to test the functionality. | ||
18. Connect the blocks together. | ||
19. Click "Run". | ||
20. Check your terminal window - you should see that the server has received the request, is processing it, and has executed it. | ||
And there you have it! You've successfully set up and tested AutoGPT. | ||
# AutoGPT Platform | ||
|
||
Welcome to the AutoGPT Platform - a powerful system for creating and running AI agents to solve business problems. This platform enables you to harness the power of artificial intelligence to automate tasks, analyze data, and generate insights for your organization. | ||
|
||
## Getting Started | ||
|
||
### Prerequisites | ||
|
||
- Docker | ||
- Docker Compose V2 (comes with Docker Desktop, or can be installed separately) | ||
|
||
### Running the System | ||
|
||
To run the AutoGPT Platform, follow these steps: | ||
|
||
1. Clone this repository to your local machine. | ||
2. Navigate to the project directory. | ||
3. Run the following command: | ||
|
||
``` | ||
docker compose up -d | ||
``` | ||
|
||
This command will start all the necessary services defined in the `docker-compose.yml` file in detached mode. | ||
|
||
### Docker Compose Commands | ||
|
||
Here are some useful Docker Compose commands for managing your AutoGPT Platform: | ||
|
||
- `docker compose up -d`: Start the services in detached mode. | ||
- `docker compose stop`: Stop the running services without removing them. | ||
- `docker compose rm`: Remove stopped service containers. | ||
- `docker compose build`: Build or rebuild services. | ||
- `docker compose down`: Stop and remove containers, networks, and volumes. | ||
- `docker compose watch`: Watch for changes in your services and automatically update them. | ||
|
||
|
||
### Sample Scenarios | ||
|
||
Here are some common scenarios where you might use multiple Docker Compose commands: | ||
|
||
1. Updating and restarting a specific service: | ||
``` | ||
docker compose build api_srv | ||
docker compose up -d --no-deps api_srv | ||
``` | ||
This rebuilds the `api_srv` service and restarts it without affecting other services. | ||
|
||
2. Viewing logs for troubleshooting: | ||
``` | ||
docker compose logs -f api_srv ws_srv | ||
``` | ||
This shows and follows the logs for both `api_srv` and `ws_srv` services. | ||
|
||
3. Scaling a service for increased load: | ||
``` | ||
docker compose up -d --scale executor=3 | ||
``` | ||
This scales the `executor` service to 3 instances to handle increased load. | ||
|
||
4. Stopping the entire system for maintenance: | ||
``` | ||
docker compose stop | ||
docker compose rm -f | ||
docker compose pull | ||
docker compose up -d | ||
``` | ||
This stops all services, removes containers, pulls the latest images, and restarts the system. | ||
|
||
5. Developing with live updates: | ||
``` | ||
docker compose watch | ||
``` | ||
This watches for changes in your code and automatically updates the relevant services. | ||
|
||
6. Checking the status of services: | ||
``` | ||
docker compose ps | ||
``` | ||
This shows the current status of all services defined in your docker-compose.yml file. | ||
|
||
These scenarios demonstrate how to use Docker Compose commands in combination to manage your AutoGPT Platform effectively. | ||
|
||
|
||
### Persisting Data | ||
|
||
To persist data for PostgreSQL and Redis, you can modify the `docker-compose.yml` file to add volumes. Here's how: | ||
|
||
1. Open the `docker-compose.yml` file in a text editor. | ||
2. Add volume configurations for PostgreSQL and Redis services: | ||
|
||
```yaml | ||
services: | ||
postgres: | ||
# ... other configurations ... | ||
volumes: | ||
- postgres_data:/var/lib/postgresql/data | ||
|
||
redis: | ||
# ... other configurations ... | ||
volumes: | ||
- redis_data:/data | ||
|
||
volumes: | ||
postgres_data: | ||
redis_data: | ||
``` | ||
3. Save the file and run `docker compose up -d` to apply the changes. | ||
|
||
This configuration will create named volumes for PostgreSQL and Redis, ensuring that your data persists across container restarts. | ||
|
||
|
||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
"use client"; | ||
|
||
import { useEffect } from "react"; | ||
import { IconCircleAlert } from "@/components/ui/icons"; | ||
import { Button } from "@/components/ui/button"; | ||
import Link from "next/link"; | ||
|
||
export default function Error({ | ||
error, | ||
reset, | ||
}: { | ||
error: Error & { digest?: string }; | ||
reset: () => void; | ||
}) { | ||
useEffect(() => { | ||
console.error(error); | ||
}, [error]); | ||
|
||
return ( | ||
<div className="fixed inset-0 flex items-center justify-center bg-background"> | ||
<div className="w-full max-w-md px-4 text-center sm:px-6"> | ||
<div className="mx-auto flex size-12 items-center justify-center rounded-full bg-muted"> | ||
<IconCircleAlert className="size-10" /> | ||
</div> | ||
<h1 className="mt-8 text-2xl font-bold tracking-tight text-foreground"> | ||
Oops, something went wrong! | ||
</h1> | ||
<p className="mt-4 text-muted-foreground"> | ||
We're sorry, but an unexpected error has occurred. Please try | ||
again later or contact support if the issue persists. | ||
</p> | ||
<div className="mt-6 flex flex-row justify-center gap-4"> | ||
<Button onClick={reset} variant="outline"> | ||
Retry | ||
</Button> | ||
<Button> | ||
<Link href="/">Go to Homepage</Link> | ||
</Button> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import AgentFlowListSkeleton from "@/components/monitor/skeletons/AgentFlowListSkeleton"; | ||
import React from "react"; | ||
import FlowRunsListSkeleton from "@/components/monitor/skeletons/FlowRunsListSkeleton"; | ||
import FlowRunsStatusSkeleton from "@/components/monitor/skeletons/FlowRunsStatusSkeleton"; | ||
|
||
export default function MonitorLoadingSkeleton() { | ||
return ( | ||
<div className="space-y-4 p-4"> | ||
<div className="grid grid-cols-1 gap-4 md:grid-cols-3"> | ||
{/* Agents Section */} | ||
<AgentFlowListSkeleton /> | ||
|
||
{/* Runs Section */} | ||
<FlowRunsListSkeleton /> | ||
|
||
{/* Stats Section */} | ||
<FlowRunsStatusSkeleton /> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains 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
Oops, something went wrong.