public LimitTokenCountFilterFactory(Map<String, String> args) {super(args);maxTokenCount = requireInt(args, MAX_TOKEN_COUNT_KEY);consumeAllTokens = getBoolean(args, CONSUME_ALL_TOKENS_KEY, false);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}
public LimitTokenCountFilterFactory(IDictionary<string, string> args): base(args){maxTokenCount = RequireInt32(args, MAX_TOKEN_COUNT_KEY);consumeAllTokens = GetBoolean(args, CONSUME_ALL_TOKENS_KEY, false);if (args.Count > 0){throw new System.ArgumentException("Unknown parameters: " + args);}}