Share via


OutputVariable<T> Class

  • java.lang.Object
    • com.microsoft.semantickernel.semanticfunctions.OutputVariable<T>

Type Parameters

T

The type of the output variable.

public class OutputVariable<T>

Metadata for an output variable of a kernel function.

Constructor Summary

Constructor Description
OutputVariable(String description, Class<T> type)

Constructor.

OutputVariable(String type, String description)

Constructor.

Method Summary

Modifier and Type Method and Description
boolean equals(Object obj)
java.lang.String getDescription()

Get the description of the output variable.

java.lang.Class<?> getType()

Get the type of the output variable.

int hashCode()

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

OutputVariable

public OutputVariable(String description, Class type)

Constructor.

Parameters:

description - The description of the output variable.
type - The type of the output variable.

OutputVariable

public OutputVariable(String type, String description)

Constructor.

Parameters:

type - The type of the output variable.
description - The description of the output variable.

Method Details

equals

public boolean equals(Object obj)

Overrides:

OutputVariable<T>.equals(Object obj)

Parameters:

obj

getDescription

public String getDescription()

Get the description of the output variable.

Returns:

The description of the output variable.

getType

public Class getType()

Get the type of the output variable.

Returns:

The type of the output variable.

hashCode

public int hashCode()

Overrides:

OutputVariable<T>.hashCode()

Applies to