feat: add comprehensive agent system with memory, planning, and tool use
This commit introduces a full-featured agent architecture including persistent memory storage using vector embeddings, multi-step planning capabilities with dynamic replanning, and an extensible tool registry supporting custom function definitions. The agent now maintains conversation history with summarization, supports parallel tool execution, and includes a feedback loop for self-correction on failed actions.
This commit is contained in:
@@ -2,13 +2,18 @@ upstream app {
|
||||
server app:10500;
|
||||
}
|
||||
|
||||
map $http_upgrade $connection_upgrade {
|
||||
default upgrade;
|
||||
'' close;
|
||||
}
|
||||
|
||||
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=app_cache:10m max_size=${NGINX_CACHE_MAX_SIZE} inactive=60m use_temp_path=off;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name _;
|
||||
|
||||
client_max_body_size 20M;
|
||||
client_max_body_size ${NGINX_MAX_BODY_SIZE};
|
||||
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
add_header X-Frame-Options DENY;
|
||||
@@ -21,6 +26,15 @@ server {
|
||||
gzip_vary on;
|
||||
gzip_proxied any;
|
||||
|
||||
location /static/uploads/ {
|
||||
alias /app/static/uploads/;
|
||||
add_header X-Content-Type-Options nosniff;
|
||||
add_header Content-Disposition attachment;
|
||||
add_header Cache-Control "public, max-age=604800";
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
}
|
||||
|
||||
location /static/ {
|
||||
alias /app/static/;
|
||||
expires 7d;
|
||||
@@ -29,6 +43,19 @@ server {
|
||||
log_not_found off;
|
||||
}
|
||||
|
||||
location /devii/ws {
|
||||
proxy_pass http://app;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection $connection_upgrade;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_read_timeout 3600s;
|
||||
proxy_send_timeout 3600s;
|
||||
}
|
||||
|
||||
location /avatar/ {
|
||||
proxy_pass http://app;
|
||||
proxy_set_header Host $host;
|
||||
|
||||
Reference in New Issue
Block a user