mirror of
https://github.com/microsoft/semantic-kernel.git
synced 2026-10-12 02:19:06 +00:00
Java: Java Reorg demos (#6004)
### Motivation and Context <!-- Thank you for your contribution to the semantic-kernel repo! Please help reviewers and future users, providing the following information: 1. Why is this change required? 2. What problem does it solve? 3. What scenario does it contribute to? 4. If it fixes an open issue, please link to the issue here. --> ### Description <!-- Describe your changes, the overall approach, the underlying design. These notes will help understanding how your code works. Thanks! --> ### Contribution Checklist <!-- Before submitting this PR, please make sure: --> - [ ] The code builds clean without any errors or warnings - [ ] The PR follows the [SK Contribution Guidelines](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md) and the [pre-submission formatting script](https://github.com/microsoft/semantic-kernel/blob/main/CONTRIBUTING.md#development-scripts) raises no violations - [ ] All unit tests pass, and I have added new tests where possible - [ ] I didn't break anyone 😄
This commit is contained in:
+1
-1
@@ -16,7 +16,7 @@ and frameworks.
|
||||
## Quickstart
|
||||
|
||||
To get an idea of how to use the Semantic Kernel for Java, you can check
|
||||
the [syntax examples](samples/sample-code/src/main/java/com/microsoft/semantickernel/samples/syntaxexamples) folder for
|
||||
the [syntax-examples](samples/semantickernel-concepts/semantickernel-syntax-examples/src/main/java/com/microsoft/semantickernel/samples/syntaxexamples) folder for
|
||||
examples of common AI-enabled scenarios.
|
||||
|
||||
## Get started
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.microsoft.semantic-kernel</groupId>
|
||||
<artifactId>semantickernel-sample-code</artifactId>
|
||||
<artifactId>semantickernel-syntax-examples</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import com.microsoft.semantickernel.Kernel;
|
||||
import com.microsoft.semantickernel.orchestration.FunctionResult;
|
||||
import com.microsoft.semantickernel.plugin.KernelPlugin;
|
||||
import com.microsoft.semantickernel.plugin.KernelPluginFactory;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example03_Arguments.StaticTextPlugin;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.functions.Example03_Arguments.StaticTextPlugin;
|
||||
import com.microsoft.semantickernel.semanticfunctions.KernelFunctionArguments;
|
||||
import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
+17
-17
@@ -3,30 +3,25 @@ package com.microsoft.semantickernel.tests;
|
||||
|
||||
import com.github.tomakehurst.wiremock.WireMockServer;
|
||||
import com.github.tomakehurst.wiremock.core.WireMockConfiguration;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example01_NativeFunctions;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example03_Arguments;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example05_InlineFunctionDefinition;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example06_TemplateLanguage;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example09_FunctionTypes;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example10_DescribeAllPluginsAndFunctions;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example13_ConversationSummaryPlugin;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example17_ChatGPT;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example27_PromptFunctionsUsingChatGPT;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example33_Chat;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example41_HttpClientUsage;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example43_GetModelResult;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example44_MultiChatCompletion;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example49_LogitBias;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example55_TextChunker;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example56_TemplateMethodFunctionsWithMultipleArguments;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example57_KernelHooks;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example58_ConfigureExecutionSettings;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example60_AdvancedMethodFunctions;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example61_MultipleLLMs;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example62_CustomAIServiceSelector;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example63_ChatCompletionPrompts;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example64_MultiplePromptTemplates;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.Example69_MutableKernelPlugin;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.chatcompletion.Example17_ChatGPT;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.chatcompletion.Example33_Chat;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.chatcompletion.Example44_MultiChatCompletion;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.chatcompletion.Example63_ChatCompletionPrompts;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.configuration.Example41_HttpClientUsage;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.configuration.Example58_ConfigureExecutionSettings;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.functions.Example01_NativeFunctions;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.functions.Example03_Arguments;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.functions.Example05_InlineFunctionDefinition;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.functions.Example09_FunctionTypes;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.functions.Example27_PromptFunctionsUsingChatGPT;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.functions.Example60_AdvancedMethodFunctions;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.java.FunctionsWithinPrompts_Example;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.java.KernelFunctionYaml_Example;
|
||||
import java.io.IOException;
|
||||
@@ -37,6 +32,11 @@ import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Queue;
|
||||
import java.util.stream.Stream;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.plugins.Example10_DescribeAllPluginsAndFunctions;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.plugins.Example13_ConversationSummaryPlugin;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.template.Example06_TemplateLanguage;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.template.Example56_TemplateMethodFunctionsWithMultipleArguments;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.template.Example64_MultiplePromptTemplates;
|
||||
import org.junit.jupiter.api.DynamicTest;
|
||||
import org.junit.jupiter.api.TestFactory;
|
||||
import org.mockito.Mockito;
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
## Kernel Samples
|
||||
|
||||
| Type | Description |
|
||||
|-----------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|
|
||||
| [semantickernel-demos](semantickernel-demos) | Look here to find a sample which demonstrate how to use many of Semantic Kernel features. |
|
||||
| [semantickernel-learn-resources](semantickernel-learn-resources) | Code snippets that are related to online documentation sources like Microsoft Learn, DevBlogs and others |
|
||||
| [semantickernel-concepts](semantickernel-concepts) | This section contains samples which illustrate how to use Semantic Kernel concepts. |
|
||||
| [semantickernel-sample-plugins](semantickernel-sample-plugins) | This section contains samples which illustrate how to create Semantic Kernel plugins. |
|
||||
@@ -15,9 +15,10 @@
|
||||
<description>Parent pom for sample code for using the Semantic Kernel project</description>
|
||||
|
||||
<modules>
|
||||
<module>sample-code</module>
|
||||
<module>semantickernel-openapi-plugin</module>
|
||||
<module>booking-agent-m365</module>
|
||||
<module>semantickernel-concepts</module>
|
||||
<module>semantickernel-demos</module>
|
||||
<module>semantickernel-learn-resources</module>
|
||||
<module>semantickernel-sample-plugins</module>
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.microsoft.semantic-kernel</groupId>
|
||||
<artifactId>semantickernel-samples-parent</artifactId>
|
||||
<version>1.0.3-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>semantickernel-concepts</artifactId>
|
||||
<version>1.0.3-SNAPSHOT</version>
|
||||
<packaging>pom</packaging>
|
||||
<name>semantickernel-concepts</name>
|
||||
|
||||
<modules>
|
||||
<module>semantickernel-syntax-examples</module>
|
||||
</modules>
|
||||
</project>
|
||||
+2
-2
@@ -3,12 +3,12 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.microsoft.semantic-kernel</groupId>
|
||||
<artifactId>semantickernel-samples-parent</artifactId>
|
||||
<artifactId>semantickernel-concepts</artifactId>
|
||||
<version>1.0.3-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>semantickernel-sample-code</artifactId>
|
||||
<artifactId>semantickernel-syntax-examples</artifactId>
|
||||
<name>Semantic Kernel Samples</name>
|
||||
<description>Sample code for using the Semantic Kernel project</description>
|
||||
<packaging>jar</packaging>
|
||||
+20
@@ -1,6 +1,26 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.chatcompletion.Example17_ChatGPT;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.chatcompletion.Example30_ChatWithPrompts;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.chatcompletion.Example33_Chat;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.chatcompletion.Example44_MultiChatCompletion;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.chatcompletion.Example63_ChatCompletionPrompts;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.configuration.Example08_RetryHandler;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.configuration.Example41_HttpClientUsage;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.configuration.Example58_ConfigureExecutionSettings;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.functions.Example01_NativeFunctions;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.functions.Example03_Arguments;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.functions.Example05_InlineFunctionDefinition;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.functions.Example09_FunctionTypes;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.functions.Example27_PromptFunctionsUsingChatGPT;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.functions.Example60_AdvancedMethodFunctions;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.plugins.Example10_DescribeAllPluginsAndFunctions;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.plugins.Example13_ConversationSummaryPlugin;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.template.Example06_TemplateLanguage;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.template.Example56_TemplateMethodFunctionsWithMultipleArguments;
|
||||
import com.microsoft.semantickernel.samples.syntaxexamples.template.Example64_MultiplePromptTemplates;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Scanner;
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.audio;
|
||||
|
||||
import com.azure.ai.openai.OpenAIAsyncClient;
|
||||
import com.azure.ai.openai.OpenAIClientBuilder;
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.chatcompletion;
|
||||
|
||||
import com.azure.ai.openai.OpenAIAsyncClient;
|
||||
import com.azure.ai.openai.OpenAIClientBuilder;
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.chatcompletion;
|
||||
|
||||
import com.azure.ai.openai.OpenAIAsyncClient;
|
||||
import com.azure.ai.openai.OpenAIClientBuilder;
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.chatcompletion;
|
||||
|
||||
import com.azure.ai.openai.OpenAIAsyncClient;
|
||||
import com.azure.ai.openai.OpenAIClientBuilder;
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.chatcompletion;
|
||||
|
||||
import com.azure.ai.openai.OpenAIAsyncClient;
|
||||
import com.azure.ai.openai.OpenAIClientBuilder;
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.chatcompletion;
|
||||
|
||||
import com.azure.ai.openai.OpenAIAsyncClient;
|
||||
import com.azure.ai.openai.OpenAIClientBuilder;
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.configuration;
|
||||
|
||||
import com.azure.ai.openai.OpenAIAsyncClient;
|
||||
import com.azure.ai.openai.OpenAIClientBuilder;
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.configuration;
|
||||
|
||||
import com.azure.ai.openai.OpenAIAsyncClient;
|
||||
import com.azure.ai.openai.OpenAIClientBuilder;
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.configuration;
|
||||
|
||||
import com.azure.ai.openai.OpenAIAsyncClient;
|
||||
import com.azure.ai.openai.OpenAIClientBuilder;
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.configuration;
|
||||
|
||||
import com.azure.ai.openai.OpenAIAsyncClient;
|
||||
import com.azure.ai.openai.OpenAIClientBuilder;
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.functions;
|
||||
|
||||
import com.microsoft.semantickernel.samples.plugins.text.TextPlugin;
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.functions;
|
||||
|
||||
import com.microsoft.semantickernel.Kernel;
|
||||
import com.microsoft.semantickernel.orchestration.FunctionResult;
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.functions;
|
||||
|
||||
import com.azure.ai.openai.OpenAIAsyncClient;
|
||||
import com.azure.ai.openai.OpenAIClientBuilder;
|
||||
+3
-2
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.functions;
|
||||
|
||||
import static com.microsoft.semantickernel.contextvariables.ContextVariableTypes.convert;
|
||||
|
||||
@@ -72,7 +72,8 @@ public class Example09_FunctionTypes {
|
||||
|
||||
KernelPlugin summarize = KernelPluginFactory
|
||||
.importPluginFromDirectory(
|
||||
Path.of(PLUGIN_DIR, "java/samples/sample-code/src/main/resources/Plugins"),
|
||||
Path.of(PLUGIN_DIR,
|
||||
"java/samples/semantickernel-syntax-examples/src/main/resources/Plugins"),
|
||||
"SummarizePlugin",
|
||||
null);
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.functions;
|
||||
|
||||
import com.azure.ai.openai.OpenAIAsyncClient;
|
||||
import com.azure.ai.openai.OpenAIClientBuilder;
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.functions;
|
||||
|
||||
import com.azure.ai.openai.OpenAIAsyncClient;
|
||||
import com.azure.ai.openai.OpenAIClientBuilder;
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.functions;
|
||||
|
||||
import com.microsoft.semantickernel.Kernel;
|
||||
import com.microsoft.semantickernel.contextvariables.ContextVariableTypeConverter;
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.plugins;
|
||||
|
||||
import com.azure.ai.openai.OpenAIAsyncClient;
|
||||
import com.azure.ai.openai.OpenAIClientBuilder;
|
||||
+3
-2
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.plugins;
|
||||
|
||||
import java.nio.file.Path;
|
||||
import java.util.Locale;
|
||||
@@ -73,7 +73,8 @@ public class Example10_DescribeAllPluginsAndFunctions {
|
||||
kernelBuilder.withPlugin(
|
||||
KernelPluginFactory
|
||||
.importPluginFromDirectory(
|
||||
Path.of(PLUGIN_DIR, "java/samples/sample-code/src/main/resources/Plugins"),
|
||||
Path.of(PLUGIN_DIR,
|
||||
"java/samples/semantickernel-syntax-examples/src/main/resources/Plugins"),
|
||||
"SummarizePlugin",
|
||||
null));
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.plugins;
|
||||
|
||||
import com.azure.ai.openai.OpenAIAsyncClient;
|
||||
import com.azure.ai.openai.OpenAIClientBuilder;
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.template;
|
||||
|
||||
import com.azure.ai.openai.OpenAIAsyncClient;
|
||||
import com.azure.ai.openai.OpenAIClientBuilder;
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.template;
|
||||
|
||||
import com.azure.ai.openai.OpenAIAsyncClient;
|
||||
import com.azure.ai.openai.OpenAIClientBuilder;
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples;
|
||||
package com.microsoft.semantickernel.samples.syntaxexamples.template;
|
||||
|
||||
import com.azure.ai.openai.OpenAIAsyncClient;
|
||||
import com.azure.ai.openai.OpenAIClientBuilder;
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.microsoft.semantic-kernel</groupId>
|
||||
<artifactId>semantickernel-samples-parent</artifactId>
|
||||
<artifactId>semantickernel-demos</artifactId>
|
||||
<version>1.0.3-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.microsoft.semantic-kernel</groupId>
|
||||
<artifactId>semantickernel-samples-parent</artifactId>
|
||||
<version>1.0.3-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>semantickernel-demos</artifactId>
|
||||
<version>1.0.3-SNAPSHOT</version>
|
||||
<packaging>pom</packaging>
|
||||
<name>semantic-kernel-demos</name>
|
||||
|
||||
<modules>
|
||||
<module>booking-agent-m365</module>
|
||||
</modules>
|
||||
</project>
|
||||
@@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<parent>
|
||||
<groupId>com.microsoft.semantic-kernel</groupId>
|
||||
<artifactId>semantickernel-samples-parent</artifactId>
|
||||
<version>1.0.3-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>semantickernel-learn-resources</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.microsoft.semantic-kernel</groupId>
|
||||
<artifactId>semantickernel-bom</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.microsoft.semantic-kernel</groupId>
|
||||
<artifactId>semantickernel-api</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-api</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-core</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.logging.log4j</groupId>
|
||||
<artifactId>log4j-slf4j2-impl</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-databind</artifactId>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-core</artifactId>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.azure</groupId>
|
||||
<artifactId>azure-identity</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.microsoft.semantic-kernel</groupId>
|
||||
<artifactId>semantickernel-aiservices-openai</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user