File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
tools/tavily/runtime/src/main/java/io/quarkiverse/langchain4j/tavily/runtime Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -77,13 +77,13 @@ public interface TavilyConfig {
7777 /**
7878 * A list of domains to specifically include in the search results. Default is [], which includes all domains.
7979 */
80- @ WithDefault ( "[] " )
81- List <String > includeDomains ();
80+ @ ConfigDocDefault ( "empty list " )
81+ Optional < List <String > > includeDomains ();
8282
8383 /**
8484 * A list of domains to specifically exclude from the search results. Default is [], which doesn't exclude any domains.
8585 */
86- @ WithDefault ( "[] " )
87- List <String > excludeDomains ();
86+ @ ConfigDocDefault ( "empty list " )
87+ Optional < List <String > > excludeDomains ();
8888
8989}
Original file line number Diff line number Diff line change 11package io .quarkiverse .langchain4j .tavily .runtime ;
22
3+ import java .util .List ;
34import java .util .function .Supplier ;
45
56import io .quarkiverse .langchain4j .tavily .QuarkusTavilyWebSearchEngine ;
@@ -27,8 +28,8 @@ public QuarkusTavilyWebSearchEngine get() {
2728 runtimeConfig .getValue ().searchDepth (),
2829 runtimeConfig .getValue ().includeAnswer (),
2930 runtimeConfig .getValue ().includeRawContent (),
30- runtimeConfig .getValue ().includeDomains (),
31- runtimeConfig .getValue ().excludeDomains ());
31+ runtimeConfig .getValue ().includeDomains (). orElse ( List . of ()) ,
32+ runtimeConfig .getValue ().excludeDomains (). orElse ( List . of ()) );
3233 }
3334 };
3435 }
You can’t perform that action at this time.
0 commit comments