mirror of
https://github.com/microsoft/semantic-kernel.git
synced 2026-10-12 02:19:06 +00:00
Roll prompt execution settings, kernel args, hooks, and return type into an InvocationContext and add methods to Kernel and KernelFunction that use an InvocationContext. The idea is that the invokeAsync methods that take a KernelFunction, args and a return type are fine, but we don't want to blow out the API with variations of invokeAsync for hooks, etc. Also, prompt execution settings were in KernelArguments, which just doesn't make sense. Now we can extend/add to the context as the need arises without having to change the Kernel and KernelFunction API. Sweet!
130 lines
4.4 KiB
XML
130 lines
4.4 KiB
XML
<?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>samples</artifactId>
|
|
<version>1.0.0-alpha.1-SNAPSHOT</version>
|
|
<relativePath>../pom.xml</relativePath>
|
|
</parent>
|
|
|
|
<artifactId>sample-code</artifactId>
|
|
<name>Semantic Kernel Samples</name>
|
|
<description>Sample code for using the Semantic Kernel project</description>
|
|
<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>com.microsoft.semantic-kernel</groupId>
|
|
<artifactId>semantickernel-plugin-core</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.microsoft.semantic-kernel</groupId>
|
|
<artifactId>semantickernel-connectors-web-bing</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>aiservices-openai</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<profiles>
|
|
<profile>
|
|
<id>bug-check</id>
|
|
|
|
<activation>
|
|
<activeByDefault>false</activeByDefault>
|
|
</activation>
|
|
|
|
<build>
|
|
<plugins>
|
|
<!-- Ignore linting on samples -->
|
|
<plugin>
|
|
<groupId>com.github.spotbugs</groupId>
|
|
<artifactId>spotbugs-maven-plugin</artifactId>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
<configuration>
|
|
<source>17</source>
|
|
<target>17</target>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>exec-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>run-sample</id>
|
|
<goals>
|
|
<goal>java</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<mainClass>com.microsoft.semantickernel.samples.syntaxexamples.${sample}</mainClass>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|