KernelFunctionArguments Class  
	- java.
lang. Object  - com.
microsoft. semantickernel. semanticfunctions. KernelFunctionArguments  
- com.
 
Implements
public class KernelFunctionArguments
 implements java.util.Map<java.lang.String,ContextVariable<?>>
Arguments to a kernel function.
Field Summary
| Modifier and Type | Field and Description | 
|---|---|
| static final java.lang.String | 
							MAIN_KEY
								 Default key for the main input.  | 
					
Constructor Summary
| Modifier | Constructor | Description | 
|---|---|---|
| protected | KernelFunctionArguments() | 
								 Create a new instance of Kernel  | 
					
| protected | KernelFunctionArguments(ContextVariable<?> content) | 
								 Create a new instance of Kernel  | 
					
| protected | KernelFunctionArguments(Map<String,ContextVariable<?>> variables) | 
								 Create a new instance of Kernel  | 
					
Method Summary
| Modifier and Type | Method and Description | 
|---|---|
| static Builder | 
							builder()
								 Create a new instance of Builder.  | 
					
| void | clear() | 
| boolean | containsKey(Object key) | 
| boolean | containsValue(Object value) | 
| 
									Kernel | 
						
							copy()
								 Create a copy of the current instance  | 
					
| 
									java.util.Set<java.util.Map.Entry<java.lang.String,Context | 
						entrySet() | 
| 
									Context | 
						get(Object key) | 
| 
									Context | 
						
							get(String key)
								 Return the variable with the given name  | 
					
| 
									Context | 
						
							getInput()
								 Get the input (entry in the MAIN_KEY slot)  | 
					
| boolean | isEmpty() | 
| boolean | 
							isNullOrEmpty(String key)
								 Return whether the variable with the given name is   | 
					
| java.util.Set<java.lang.String> | keySet() | 
| java.lang.String | 
							prettyPrint()
								 Create formatted string of the variables  | 
					
| 
									Context | 
						put(String key, ContextVariable<?> value) | 
| void | putAll(Map<? extends String,? extends ContextVariable<?>> m) | 
| 
									Context | 
						remove(Object key) | 
| int | size() | 
| 
									java.util.Collection<Context | 
						values() | 
Methods inherited from java.lang.Object
Field Details
MAIN_KEY
public static final String MAIN_KEY
Default key for the main input.
Constructor Details
KernelFunctionArguments
protected KernelFunctionArguments()
Create a new instance of KernelFunctionArguments.
KernelFunctionArguments
protected KernelFunctionArguments(ContextVariable content)
Create a new instance of KernelFunctionArguments.
Parameters:
KernelFunctionArguments
protected KernelFunctionArguments(Map
Create a new instance of KernelFunctionArguments.
Parameters:
Method Details
builder
public static KernelFunctionArguments.Builder builder()
Create a new instance of Builder.
Returns:
clear
public void clear()
containsKey
public boolean containsKey(Object key)
Parameters:
containsValue
public boolean containsValue(Object value)
Parameters:
copy
public KernelFunctionArguments copy()
Create a copy of the current instance
Returns:
entrySet
public Set
get
public ContextVariable get(Object key)
Parameters:
get
public ContextVariable get(String key)
Return the variable with the given name
Parameters:
Returns:
getInput
public ContextVariable getInput()
Get the input (entry in the MAIN_KEY slot)
Returns:
isEmpty
public boolean isEmpty()
isNullOrEmpty
public boolean isNullOrEmpty(String key)
Return whether the variable with the given name is null or empty.
Parameters:
Returns:
true if the variable is null or empty, false otherwisekeySet
public Set
prettyPrint
public String prettyPrint()
Create formatted string of the variables
Returns:
put
public ContextVariable put(String key, ContextVariable value)
Parameters:
putAll
public void putAll(Map> m)
Parameters:
remove
public ContextVariable remove(Object key)
Parameters:
size
public int size()
values
public Collection