| 
 | 1 | +/*  | 
 | 2 | + * Copyright 2025 Google LLC  | 
 | 3 | + *  | 
 | 4 | + * Licensed under the Apache License, Version 2.0 (the "License");  | 
 | 5 | + * you may not use this file except in compliance with the License.  | 
 | 6 | + * You may obtain a copy of the License at  | 
 | 7 | + *  | 
 | 8 | + *      http://www.apache.org/licenses/LICENSE-2.0  | 
 | 9 | + *  | 
 | 10 | + * Unless required by applicable law or agreed to in writing, software  | 
 | 11 | + * distributed under the License is distributed on an "AS IS" BASIS,  | 
 | 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  | 
 | 13 | + * See the License for the specific language governing permissions and  | 
 | 14 | + * limitations under the License.  | 
 | 15 | + */  | 
 | 16 | + | 
 | 17 | +using System;  | 
 | 18 | +using System.Collections.Generic;  | 
 | 19 | +using System.Threading.Tasks;  | 
 | 20 | + | 
 | 21 | +namespace Firebase.VertexAI {  | 
 | 22 | + | 
 | 23 | +public class Chat {  | 
 | 24 | + | 
 | 25 | +  public IEnumerable<ModelContent> History { get; }  | 
 | 26 | + | 
 | 27 | +  // Note: The generation functions are the same as the ones in GenerativeModel  | 
 | 28 | + | 
 | 29 | +  public Task<GenerateContentResponse> GenerateContentAsync(  | 
 | 30 | +      params ModelContent[] content) {  | 
 | 31 | +    throw new NotImplementedException();  | 
 | 32 | +  }  | 
 | 33 | +  public Task<GenerateContentResponse> GenerateContentAsync(  | 
 | 34 | +      string text) {  | 
 | 35 | +    throw new NotImplementedException();  | 
 | 36 | +  }  | 
 | 37 | +  public Task<GenerateContentResponse> GenerateContentAsync(  | 
 | 38 | +      IEnumerable<ModelContent> content) {  | 
 | 39 | +    throw new NotImplementedException();  | 
 | 40 | +  }  | 
 | 41 | + | 
 | 42 | +// The build logic isn't able to resolve IAsyncEnumerable for some reason, even  | 
 | 43 | +// though it is usable in Unity 2021.3.  Will need to investigate further.  | 
 | 44 | +/*  | 
 | 45 | +  public IAsyncEnumerable<GenerateContentResponse> GenerateContentStreamAsync(  | 
 | 46 | +      params ModelContent[] content) {  | 
 | 47 | +    throw new NotImplementedException();  | 
 | 48 | +  }  | 
 | 49 | +  public IAsyncEnumerable<GenerateContentResponse> GenerateContentStreamAsync(  | 
 | 50 | +      string text) {  | 
 | 51 | +    throw new NotImplementedException();  | 
 | 52 | +  }  | 
 | 53 | +  public IAsyncEnumerable<GenerateContentResponse> GenerateContentStreamAsync(  | 
 | 54 | +      IEnumerable<ModelContent> content) {  | 
 | 55 | +    throw new NotImplementedException();  | 
 | 56 | +  }  | 
 | 57 | +*/  | 
 | 58 | + | 
 | 59 | +  public Task<CountTokensResponse> CountTokensAsync(  | 
 | 60 | +      params ModelContent[] content) {  | 
 | 61 | +    throw new NotImplementedException();  | 
 | 62 | +  }  | 
 | 63 | +  public Task<CountTokensResponse> CountTokensAsync(  | 
 | 64 | +      string text) {  | 
 | 65 | +    throw new NotImplementedException();  | 
 | 66 | +  }  | 
 | 67 | +  public Task<CountTokensResponse> CountTokensAsync(  | 
 | 68 | +      IEnumerable<ModelContent> content) {  | 
 | 69 | +    throw new NotImplementedException();  | 
 | 70 | +  }  | 
 | 71 | + | 
 | 72 | +  // Note: No public constructor, get one through GenerativeModel.StartChat  | 
 | 73 | + | 
 | 74 | +}  | 
 | 75 | + | 
 | 76 | +}  | 
0 commit comments