# spring-ai-alibaba-admin **Repository Path**: mirrors/spring-ai-alibaba-admin ## Basic Information - **Project Name**: spring-ai-alibaba-admin - **Description**: Agent Studio 是一个基于 Spring AI Alibaba 的 AI Agent 开发与评估平台,旨在为开发者和企业提供完整的 AI Agent 生命周期管理解决方案 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: https://www.oschina.net/p/spring-ai-alibaba-admin - **GVP Project**: No ## Statistics - **Stars**: 6 - **Forks**: 2 - **Created**: 2025-10-23 - **Last Updated**: 2026-01-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # This repository is now part of the [alibaba/spring-ai-alibaba](https://github.com/alibaba/spring-ai-alibaba/tree/main/spring-ai-alibaba-admin) project. The source code has been fully migrated, please submit and follow updates there. > Spring AI Alibaba Repo: https://github.com/alibaba/spring-ai-alibaba > > Spring AI Alibaba Website: https://java2ai.com > > Spring AI Alibaba Website Repo: https://github.com/springaialibaba/spring-ai-alibaba-website English | [中文](./README-zh.md) ## Project Background Agent Studio is an AI Agent development and evaluation platform based on Spring AI Alibaba, designed to provide developers and enterprises with a complete AI Agent lifecycle management solution. The platform supports a complete workflow from Prompt engineering, dataset management, evaluator configuration to experiment execution and result analysis, helping users quickly build, test, and optimize AI Agent applications. ## Core Features ### 🤖 Prompt Management - **Prompt Template Management**: Create, update, and delete Prompt templates - **Version Control**: Support for Prompt version management and history tracking - **Real-time Debugging**: Provide online Prompt debugging and streaming responses - **Session Management**: Support for multi-turn conversation session management ### 📊 Dataset Management - **Dataset Creation**: Support for importing and creating datasets in multiple formats - **Version Management**: Dataset version control and history management - **Data Item Management**: Fine-grained data item CRUD operations - **Create from Trace**: Support for creating datasets from OpenTelemetry trace data ### ⚖️ Evaluator Management - **Evaluator Configuration**: Support for creating and configuring various evaluators - **Template System**: Provide evaluator templates and custom evaluation logic - **Debugging Features**: Support for online evaluator debugging and testing - **Version Management**: Evaluator version control and release management ### 🧪 Experiment Management - **Experiment Execution**: Automated execution of evaluation experiments - **Result Analysis**: Detailed experiment result analysis and statistics - **Experiment Control**: Support for starting, stopping, restarting, and deleting experiments - **Batch Processing**: Support for batch experiment execution and result comparison ### 📈 Observability - **Trace Tracking**: Integrated OpenTelemetry providing complete trace tracking - **Service Monitoring**: Support for service list and overview statistics - **Trace Analysis**: Provide detailed Trace details and Span analysis ### 🔧 Model Configuration - **Multi-model Support**: Support for mainstream AI models including OpenAI, DashScope, DeepSeek - **Configuration Management**: Unified configuration and management of model parameters - **Dynamic Switching**: Support for dynamic updates of model configuration at runtime ## System Architecture ### Overall Architecture ![Overall Architecture](./docs/imgs/arch.png) ## 🚀 Quick Start ### Prerequisites - 🐳 **Docker** (for containerized deployment) + **Docker Compose**: 2.0+ - ☕ **Java 17+** (for source code execution) + **Maven**: 3.8+ - 🌐 **AI Model Provider API Keys**, supporting OpenAI, DashScope, DeepSeek ### Running from Source Code #### 1. Clone the Project ```bash git clone https://github.com/spring-ai-alibaba/spring-ai-alibaba-admin.git cd spring-ai-alibaba-admin ``` #### 2. Configure Your API Keys Modify the model configuration in `spring-ai-alibaba-admin-server-start/model-config.yaml` according to your model provider. - If you use DashScope, please refer to the model-config-dashscope.yaml template for configuration - If you use DeepSeek, please refer to the model-config-deepseek.yaml template for configuration - If you use OpenAI, please refer to the model-config-openai.yaml template for configuration > 💡 **Get Your DashScope API Key**: Visit [Alibaba Cloud Bailian Console](https://bailian.console.aliyun.com/?tab=model#/api-key) to get a free API key. #### 3. Nacos Configuration (Optional) If you need to modify the Nacos address, please update the configuration in the `spring-ai-alibaba-admin-server-start/src/main/resources/application.yml` file ```yaml nacos: server-addr: ${nacos-address} ``` ### 4. Start SAA Admin Execute the startup script in the root directory. This script will help you start the database-related services ```bash sh start.sh ``` Start the application in the spring-ai-alibaba-admin-server-start directory ```bash mvn spring-boot:run ``` ### 5. Access the Application Open your browser and visit http://localhost:8080 to use the SAA Admin platform. At this point, you can already manage, debug, evaluate, and observe prompts on the platform. If you expect your Spring AI Alibaba Agent application to integrate with Nacos for prompt loading and dynamic updates, and observe the online running status, you can refer to step 6 to configure your AI Agent application. ### 6. Connect Your AI Agent Application In your Spring AI Alibaba Agent application, add the following dependencies ```xml com.alibaba.cloud.ai spring-ai-alibaba-agent-nacos {spring.ai.alibaba.version} com.alibaba.cloud.ai spring-ai-alibaba-autoconfigure-arms-observation {spring.ai.alibaba.version} org.springframework.boot spring-boot-starter-actuator io.micrometer micrometer-registry-otlp io.micrometer micrometer-tracing-bridge-otel io.opentelemetry opentelemetry-exporter-otlp org.springframework.ai spring-ai-autoconfigure-model-tool 1.0.0 ``` Specify Nacos address and promptKey ```yaml spring.ai.alibaba.agent.proxy.nacos.serverAddr={replace nacos address, example: 127.0.0.1:8848} spring.ai.alibaba.agent.proxy.nacos.username={replace nacos username, example: nacos} spring.ai.alibaba.agent.proxy.nacos.password={replace nacos password, example: nacos} spring.ai.alibaba.agent.proxy.nacos.promptKey={replace with promptKey, example: mse-nacos-helper} ``` Set observability parameters ```yaml management.otlp.tracing.export.enabled=true management.tracing.sampling.probability=1.0 management.otlp.tracing.endpoint=http://{admin address}:4318/v1/traces management.otlp.metrics.export.enabled=false management.otlp.logging.export.enabled=false management.opentelemetry.resource-attributes.service.name=agent-nacos-prompt-test management.opentelemetry.resource-attributes.service.version=1.0 spring.ai.chat.client.observations.log-prompt=true spring.ai.chat.observations.log-prompt=true spring.ai.chat.observations.log-completion=true spring.ai.image.observations.log-prompt=true spring.ai.vectorstore.observations.log-query-response=true spring.ai.alibaba.arms.enabled=true spring.ai.alibaba.arms.tool.enabled=true spring.ai.alibaba.arms.model.capture-input=true spring.ai.alibaba.arms.model.capture-output=true ``` ## License This project is open source under the Apache License 2.0 license. ## Contributing We welcome submitting Issues and Pull Requests to help improve the project.