File tree Expand file tree Collapse file tree 3 files changed +1
-13
lines changed
spring-ai-client-chat/src
main/java/org/springframework/ai/chat/client/advisor
test/java/org/springframework/ai/chat/client/advisor Expand file tree Collapse file tree 3 files changed +1
-13
lines changed Original file line number Diff line number Diff line change 1616
1717package org .springframework .ai .chat .client .advisor ;
1818
19- import java .util .List ;
2019import java .util .function .Predicate ;
2120
2221import org .springframework .ai .chat .client .ChatClientResponse ;
23- import org .springframework .ai .chat .client .advisor .api .CallAdvisor ;
24- import org .springframework .ai .chat .client .advisor .api .CallAdvisorChain ;
2522import org .springframework .ai .chat .model .ChatResponse ;
26- import org .springframework .util .Assert ;
2723import org .springframework .util .StringUtils ;
2824
2925/**
Original file line number Diff line number Diff line change 2020
2121import org .springframework .ai .chat .client .ChatClientRequest ;
2222import org .springframework .ai .chat .client .ChatClientResponse ;
23- import org .springframework .ai .chat .client .advisor .DefaultAroundAdvisorChain ;
24- import org .springframework .util .Assert ;
2523
2624/**
2725 * A chain of {@link CallAdvisor} instances orchestrating the execution of a
@@ -53,6 +51,6 @@ public interface CallAdvisorChain extends AdvisorChain {
5351 * @return a new CallAdvisorChain containing all advisors after the specified advisor
5452 * @throws IllegalArgumentException if the specified advisor is not part of the chain
5553 */
56- public CallAdvisorChain copy (CallAdvisor after );
54+ CallAdvisorChain copy (CallAdvisor after );
5755
5856}
Original file line number Diff line number Diff line change 1818
1919import java .util .List ;
2020
21- import io .micrometer .observation .ObservationRegistry ;
2221import org .junit .jupiter .api .Nested ;
2322import org .junit .jupiter .api .Test ;
2423
25- import org .springframework .ai .chat .client .ChatClientRequest ;
2624import org .springframework .ai .chat .client .ChatClientResponse ;
27- import org .springframework .ai .chat .client .advisor .api .CallAdvisor ;
28- import org .springframework .ai .chat .client .advisor .api .CallAdvisorChain ;
2925import org .springframework .ai .chat .messages .AssistantMessage ;
3026import org .springframework .ai .chat .metadata .ChatGenerationMetadata ;
3127import org .springframework .ai .chat .model .ChatResponse ;
3228import org .springframework .ai .chat .model .Generation ;
3329
34- import static org .assertj .core .api .Assertions .assertThat ;
35- import static org .assertj .core .api .Assertions .assertThatThrownBy ;
3630import static org .junit .jupiter .api .Assertions .assertFalse ;
3731import static org .junit .jupiter .api .Assertions .assertTrue ;
3832import static org .mockito .BDDMockito .given ;
You can’t perform that action at this time.
0 commit comments