feat: 添加三个美股 AI Agent
- stock_quote_agent: 美股实时行情查询 - stock_news_agent: 美股新闻资讯分析 - stock_analysis_agent: 美股技术分析 更新: - 添加 agent 代码到 agent_templates/agents/ - 更新 k8s_manager.py TEMPLATE_PORTS - 添加构建和部署脚本
This commit is contained in:
@@ -30,6 +30,10 @@ AZURE_CLIENT_SECRET="${AZURE_CLIENT_SECRET:-your-client-secret}"
|
||||
AZURE_SUBSCRIPTION_ID="${AZURE_SUBSCRIPTION_ID:-your-subscription-id}"
|
||||
AZURE_RESOURCE_GROUP="${AZURE_RESOURCE_GROUP:-your-resource-group}"
|
||||
|
||||
# Gitee 配置(需要替换为实际值)
|
||||
GITEE_TOKEN="${GITEE_TOKEN:-your-gitee-token}"
|
||||
GITEE_PASSWORD="${GITEE_PASSWORD:-your-gitee-password}"
|
||||
|
||||
echo -e "${BLUE}========================================${NC}"
|
||||
echo -e "${BLUE} Agent Manager K8s 部署 (ARM64)${NC}"
|
||||
echo -e "${BLUE}========================================${NC}"
|
||||
@@ -154,7 +158,18 @@ update_config() {
|
||||
fi
|
||||
fi
|
||||
|
||||
# 创建临时 secret 文件
|
||||
# 检查 Gitee 凭据
|
||||
if [ "$GITEE_TOKEN" = "your-gitee-token" ]; then
|
||||
print_warning "请设置 GITEE_TOKEN 环境变量(创建 Agent 仓库必需)"
|
||||
print_warning " export GITEE_TOKEN=your-actual-token"
|
||||
read -p "是否继续部署(不含 Gitee 仓库功能)?[y/N] " -n 1 -r
|
||||
echo
|
||||
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# 创建临时 secret 文件(包含 Azure 和 Gitee 凭据)
|
||||
cat > /tmp/agent-manager-secret.yaml <<EOF
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
@@ -166,6 +181,8 @@ stringData:
|
||||
AZURE_TENANT_ID: "${AZURE_TENANT_ID}"
|
||||
AZURE_CLIENT_ID: "${AZURE_CLIENT_ID}"
|
||||
AZURE_CLIENT_SECRET: "${AZURE_CLIENT_SECRET}"
|
||||
GITEE_TOKEN: "${GITEE_TOKEN}"
|
||||
GITEE_PASSWORD: "${GITEE_PASSWORD}"
|
||||
EOF
|
||||
|
||||
kubectl apply -f ${K8S_DIR}/agent-manager-configmap.yaml
|
||||
|
||||
Reference in New Issue
Block a user