PreChatCompletionEvent Class

  • java.lang.Object
    • com.microsoft.semantickernel.hooks.PreChatCompletionEvent

Implements

public class PreChatCompletionEvent
implements KernelHookEvent

Represents a KernelHookEvent that is raised before a chat completion is invoked.

Constructor Summary

Constructor Description
PreChatCompletionEvent(ChatCompletionsOptions options)

Creates a new instance of the PreChatCompletionEvent class.

Method Summary

Modifier and Type Method and Description
ChatCompletionsOptions getOptions()

Gets the chat completion options.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

PreChatCompletionEvent

public PreChatCompletionEvent(ChatCompletionsOptions options)

Creates a new instance of the PreChatCompletionEvent class.

Parameters:

options - the chat completion options

Method Details

getOptions

public ChatCompletionsOptions getOptions()

Gets the chat completion options.

Returns:

the options

Applies to