Share via


AIServiceSelection<T> Class

  • java.lang.Object
    • com.microsoft.semantickernel.services.AIServiceSelection<T>

Type Parameters

T

The type of AI service.

public class AIServiceSelection<T>

The result of an AI service selection.

Constructor Summary

Constructor Description
AIServiceSelection(T service, PromptExecutionSettings settings)

Creates a new AI service selection.

Method Summary

Modifier and Type Method and Description
T getService()

Gets the selected AI service.

PromptExecutionSettings getSettings()

Gets the settings associated with the selected service.

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

AIServiceSelection

public AIServiceSelection(T service, PromptExecutionSettings settings)

Creates a new AI service selection.

Parameters:

service - The selected AI service.
settings - The settings associated with the selected service. This may be null even if a service is selected..

Method Details

getService

public T getService()

Gets the selected AI service.

Returns:

The selected AI service.

getSettings

public PromptExecutionSettings getSettings()

Gets the settings associated with the selected service.

Returns:

The settings associated with the selected service. This may be null even if a service is selected.

Applies to