diff --git a/agents-flex-core/src/main/java/com/agentsflex/core/store/exception/StoreException.java b/agents-flex-core/src/main/java/com/agentsflex/core/store/exception/StoreException.java index 6830bbf..86de134 100644 --- a/agents-flex-core/src/main/java/com/agentsflex/core/store/exception/StoreException.java +++ b/agents-flex-core/src/main/java/com/agentsflex/core/store/exception/StoreException.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023-2025, Agents-Flex (fuhai999@gmail.com). + *

+ * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.agentsflex.core.store.exception; /** diff --git a/agents-flex-store/agents-flex-store-opensearch/src/main/java/com/agentsflex/store/opensearch/OpenSearchVectorStore.java b/agents-flex-store/agents-flex-store-opensearch/src/main/java/com/agentsflex/store/opensearch/OpenSearchVectorStore.java index acfebd8..f8a3f7b 100644 --- a/agents-flex-store/agents-flex-store-opensearch/src/main/java/com/agentsflex/store/opensearch/OpenSearchVectorStore.java +++ b/agents-flex-store/agents-flex-store-opensearch/src/main/java/com/agentsflex/store/opensearch/OpenSearchVectorStore.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023-2025, Agents-Flex (fuhai999@gmail.com). + *

+ * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.agentsflex.store.opensearch; import com.agentsflex.core.document.Document; diff --git a/agents-flex-store/agents-flex-store-opensearch/src/main/java/com/agentsflex/store/opensearch/OpenSearchVectorStoreConfig.java b/agents-flex-store/agents-flex-store-opensearch/src/main/java/com/agentsflex/store/opensearch/OpenSearchVectorStoreConfig.java index 85cfd7b..4ff9392 100644 --- a/agents-flex-store/agents-flex-store-opensearch/src/main/java/com/agentsflex/store/opensearch/OpenSearchVectorStoreConfig.java +++ b/agents-flex-store/agents-flex-store-opensearch/src/main/java/com/agentsflex/store/opensearch/OpenSearchVectorStoreConfig.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023-2025, Agents-Flex (fuhai999@gmail.com). + *

+ * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.agentsflex.store.opensearch; import java.io.Serializable; diff --git a/agents-flex-store/agents-flex-store-opensearch/src/test/java/com/agentsflex/store/opensearch/OpenSearchVectorStoreTest.java b/agents-flex-store/agents-flex-store-opensearch/src/test/java/com/agentsflex/store/opensearch/OpenSearchVectorStoreTest.java index 380444e..37d9ff0 100644 --- a/agents-flex-store/agents-flex-store-opensearch/src/test/java/com/agentsflex/store/opensearch/OpenSearchVectorStoreTest.java +++ b/agents-flex-store/agents-flex-store-opensearch/src/test/java/com/agentsflex/store/opensearch/OpenSearchVectorStoreTest.java @@ -1,3 +1,18 @@ +/* + * Copyright (c) 2023-2025, Agents-Flex (fuhai999@gmail.com). + *

+ * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + *

+ * http://www.apache.org/licenses/LICENSE-2.0 + *

+ * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.agentsflex.store.opensearch; import com.agentsflex.core.document.Document; @@ -6,6 +21,7 @@ import com.agentsflex.core.llm.embedding.EmbeddingOptions; import com.agentsflex.core.store.SearchWrapper; import com.agentsflex.core.store.StoreOptions; import com.agentsflex.core.store.VectorData; +import com.agentsflex.core.store.exception.StoreException; import org.junit.Test; import java.util.ArrayList; @@ -18,7 +34,7 @@ import java.util.List; */ public class OpenSearchVectorStoreTest { - @Test + @Test(expected = StoreException.class) public void test01() { OpenSearchVectorStore store = getOpenSearchVectorStore();