Skip to content

Commit 602595b

Browse files
committed
code format
1 parent b62831f commit 602595b

File tree

6 files changed

+4
-88
lines changed
  • community/memories/spring-ai-alibaba-starter-memory-mem0/src/main/java/com/alibaba/cloud/ai/memory/mem0/core
  • spring-ai-alibaba-deepresearch
  • spring-ai-alibaba-graph-core/src/main/java/com/alibaba/cloud/ai/graph/agent/flow/agent
  • spring-ai-alibaba-nl2sql/spring-ai-alibaba-nl2sql-chat/src/main/java/com/alibaba/cloud/ai/prompt
  • spring-ai-alibaba-studio/spring-ai-alibaba-studio-server

6 files changed

+4
-88
lines changed

community/memories/spring-ai-alibaba-starter-memory-mem0/src/main/java/com/alibaba/cloud/ai/memory/mem0/core/Mem0MemoryStore.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@
3838

3939
/**
4040
* @author miaoyumeng
41-
* @date 2025/06/24 14:28
42-
* @description TODO
41+
* @since 2025/06/24 14:28
4342
*/
4443
public class Mem0MemoryStore implements InitializingBean, VectorStore {
4544

spring-ai-alibaba-deepresearch/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>com.alibaba.cloud.ai</groupId>
77
<artifactId>spring-ai-alibaba-deepresearch</artifactId>
8-
<version>0.1.0</version>
8+
<version>0.1.0-SNAPSHOT</version>
99
<name>Spring AI Alibaba Deep Research</name>
1010

1111
<properties>

spring-ai-alibaba-graph-core/src/main/java/com/alibaba/cloud/ai/graph/agent/flow/agent/LoopAgent.java

Lines changed: 0 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -126,22 +126,6 @@ public Optional<OverAllState> invoke(Map<String, Object> input) throws GraphStat
126126
*/
127127
public enum LoopMode {
128128

129-
/**
130-
* <b>Count mode</b>: Execute a fixed number of loops
131-
* <p>
132-
* Execution steps:
133-
* <ol>
134-
* <li>Get input data from inputKey (optional)</li>
135-
* <li>Track the current loop count</li>
136-
* <li>Increment the count by 1 for each loop until reaching the preset loopCount
137-
* value</li>
138-
* <li>Set loopStartFlag to false when the loop ends</li>
139-
* </ol>
140-
* </p>
141-
* <p>
142-
* Applicable scenario: Scenarios requiring a fixed number of operations
143-
* </p>
144-
*/
145129
COUNT(loopConfig -> (state -> {
146130
String agentName = loopConfig.agentName();
147131
// Get input for passing to the iterator body
@@ -169,22 +153,6 @@ public enum LoopMode {
169153
return value.map(o -> Map.of(loopConfig.outputKey(), o)).orElseGet(Map::of);
170154
}), (agentName) -> combineKeyStrategy(agentName, Map.of(agentName + "__loop_count", new ReplaceStrategy()))),
171155

172-
/**
173-
* <b>Condition mode</b>: Continue looping based on a condition, similar to a
174-
* do-while structure, but when the condition is true, terminate the loop
175-
* <p>
176-
* Working principle:
177-
* <ol>
178-
* <li>Execute the first loop directly (unconditionally)</li>
179-
* <li>Subsequent loops check if the previous output meets the loopCondition</li>
180-
* <li>Exit the loop if the condition is met, otherwise continue executing</li>
181-
* </ol>
182-
* </p>
183-
* <p>
184-
* Applicable scenario: Scenarios where the decision to continue looping needs to
185-
* be made dynamically based on execution results
186-
* </p>
187-
*/
188156
CONDITION(loopConfig -> (state -> {
189157
String agentName = loopConfig.agentName();
190158
// Get input for passing to the iterator body
@@ -209,24 +177,6 @@ public enum LoopMode {
209177
return value.map(o -> Map.of(loopConfig.outputKey(), o)).orElseGet(Map::of);
210178
}), (agentName) -> combineKeyStrategy(agentName, Map.of())),
211179

212-
/**
213-
* <b>Iterable mode</b>: Iterate over each element in an Iterable object
214-
* <p>
215-
* Working principle:
216-
* <ol>
217-
* <li>Get the Iterable object from inputKey</li>
218-
* <li>Convert to List and limit the maximum number of elements
219-
* (ITERABLE_ELEMENT_COUNT)</li>
220-
* <li>Track the current index</li>
221-
* <li>Extract each element sequentially as input to the loop body</li>
222-
* <li>Exit the loop after iterating through all elements</li>
223-
* </ol>
224-
* </p>
225-
* <p>
226-
* Applicable scenario: Scenarios requiring iteration over each element in a
227-
* collection or list
228-
* </p>
229-
*/
230180
ITERABLE(loopConfig -> (state -> {
231181
String agentName = loopConfig.agentName();
232182
// Get the elements to be iterated over. If they don't exist, it means it's
@@ -275,22 +225,6 @@ public enum LoopMode {
275225
Map.of(agentName + "__iterableElement", new ReplaceStrategy(), agentName + "__iterableIndex",
276226
new ReplaceStrategy()))),
277227

278-
/**
279-
* <b>Array mode</b>: Iterate over each element in an array
280-
* <p>
281-
* Working principle:
282-
* <ol>
283-
* <li>Get the array object from inputKey</li>
284-
* <li>Track the current index</li>
285-
* <li>Use reflection to get each element in the array sequentially</li>
286-
* <li>Exit the loop after iterating through all elements</li>
287-
* </ol>
288-
* </p>
289-
* <p>
290-
* Applicable scenario: Scenarios requiring iteration over each element in a Java
291-
* array
292-
* </p>
293-
*/
294228
ARRAY(loopConfig -> (state -> {
295229
String agentName = loopConfig.agentName();
296230
// Get the input array
@@ -317,22 +251,6 @@ public enum LoopMode {
317251
return value.map(o -> Map.of(loopConfig.outputKey(), o)).orElseGet(Map::of);
318252
}), (agentName) -> combineKeyStrategy(agentName, Map.of(agentName + "__arrayIndex", new ReplaceStrategy()))),
319253

320-
/**
321-
* <b>JSON array mode</b>: Parse a JSON array and iterate over its elements
322-
* <p>
323-
* Working principle:
324-
* <ol>
325-
* <li>Get the JSON string from inputKey</li>
326-
* <li>Parse it into a List object</li>
327-
* <li>Track the current index</li>
328-
* <li>Extract each element sequentially as input to the loop body</li>
329-
* <li>Exit the loop after iterating through all elements</li>
330-
* </ol>
331-
* </p>
332-
* <p>
333-
* Applicable scenario: Scenarios requiring processing of JSON format array data
334-
* </p>
335-
*/
336254
JSON_ARRAY(loopConfig -> (state -> {
337255
String agentName = loopConfig.agentName();
338256
String listKey = agentName + "__list";

spring-ai-alibaba-nl2sql/spring-ai-alibaba-nl2sql-chat/src/main/java/com/alibaba/cloud/ai/prompt/PromptHelper.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ public static String buildSemanticConsistenPrompt(String nlReq, String sql) {
235235
* @param userRequirementsAndPlan user requirements and plan
236236
* @param analysisStepsAndData analysis steps and data
237237
* @param summaryAndRecommendations summary and recommendations
238-
* @param customPrompt user-defined prompt content, use default prompt if null
239238
* @return built prompt
240239
*/
241240
public static String buildReportGeneratorPromptWithOptimization(String userRequirementsAndPlan,

spring-ai-alibaba-studio/spring-ai-alibaba-studio-server/spring-ai-alibaba-studio-server-admin/src/main/java/com/alibaba/cloud/ai/studio/admin/generator/service/dsl/adapters/CustomDSLAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
import org.springframework.stereotype.Component;
4242

4343
/**
44-
* CustomDSLAdapter converts spring ai alibaba DSL to {@link App} and vice versa.
44+
* CustomDSLAdapter converts spring ai alibaba DSL to App and vice versa.
4545
*/
4646
@Component
4747
public class CustomDSLAdapter extends AbstractDSLAdapter {

spring-ai-alibaba-studio/spring-ai-alibaba-studio-server/spring-ai-alibaba-studio-server-runtime/src/main/java/com/alibaba/cloud/ai/studio/runtime/domain/chat/ChatMessageContentDeserializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class ChatMessageContentDeserializer extends JsonDeserializer<Object> {
3535
* Deserializes JSON content into appropriate object type.
3636
* @param p JSON parser
3737
* @param ctxt Deserialization context
38-
* @return Deserialized object (List<MultimodalContent>, String, or JsonNode)
38+
* @return Deserialized object (List MultimodalContent, String, or JsonNode)
3939
* @throws IOException if deserialization fails
4040
*/
4141
@Override

0 commit comments

Comments
 (0)