public final class LimitTokenFilter extends TokenFilter
Constructor and Description |
---|
LimitTokenFilter() |
Modifier and Type | Method and Description |
---|---|
Integer |
getMaxTokenCount()
Get the maxTokenCount property: The maximum number of tokens to produce.
|
Boolean |
isConsumeAllTokens()
Get the consumeAllTokens property: A value indicating whether all tokens
from the input must be consumed even if maxTokenCount is reached.
|
LimitTokenFilter |
setConsumeAllTokens(Boolean consumeAllTokens)
Set the consumeAllTokens property: A value indicating whether all tokens
from the input must be consumed even if maxTokenCount is reached.
|
LimitTokenFilter |
setMaxTokenCount(Integer maxTokenCount)
Set the maxTokenCount property: The maximum number of tokens to produce.
|
getName, setName
public Integer getMaxTokenCount()
public LimitTokenFilter setMaxTokenCount(Integer maxTokenCount)
maxTokenCount
- the maxTokenCount value to set.public Boolean isConsumeAllTokens()
public LimitTokenFilter setConsumeAllTokens(Boolean consumeAllTokens)
consumeAllTokens
- the consumeAllTokens value to set.Copyright © 2020 Microsoft Corporation. All rights reserved.