com.microsoft.semantickernel.hooks.PostChatCompletionEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of semantickernel-api Show documentation
Show all versions of semantickernel-api Show documentation
Defines the public interface for the Semantic Kernel
// Copyright (c) Microsoft. All rights reserved.
package com.microsoft.semantickernel.hooks;
import com.azure.ai.openai.models.ChatCompletions;
/**
* Represents a KernelHookEvent that is raised after a chat completion is invoked.
*/
public class PostChatCompletionEvent implements KernelHookEvent {
private final ChatCompletions chatCompletions;
/**
* Creates a new instance of the {@link PostChatCompletionEvent} class.
*
* @param chatCompletions the chat completions
*/
public PostChatCompletionEvent(ChatCompletions chatCompletions) {
this.chatCompletions = chatCompletions;
}
/**
* Gets the chat completions.
*
* @return the chat completions
*/
public ChatCompletions getChatCompletions() {
return chatCompletions;
}
}