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:
2026-06-08 15:38:33 +00:00
parent add1b7c56b
commit f101ffdc5e
270 changed files with 54408 additions and 541 deletions
+28 -1
View File
@@ -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;
+2 -1
View File
@@ -12,10 +12,11 @@ fi
export NGINX_CACHE_CONFIG
export NGINX_CACHE_MAX_SIZE="${NGINX_CACHE_MAX_SIZE:-1g}"
export NGINX_MAX_BODY_SIZE="${NGINX_MAX_BODY_SIZE:-50m}"
mkdir -p /etc/nginx/conf.d
envsubst '${NGINX_CACHE_CONFIG} ${NGINX_CACHE_MAX_SIZE}' \
envsubst '${NGINX_CACHE_CONFIG} ${NGINX_CACHE_MAX_SIZE} ${NGINX_MAX_BODY_SIZE}' \
< /etc/nginx/templates/default.conf.template \
> /etc/nginx/conf.d/default.conf