| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -32,7 +32,14 @@ | |||
| 32 | 32 | import java.util.Map; | |
| 33 | 33 | import java.util.logging.Logger; | |
| 34 | 34 | ||
| 35 | - /** A responder that automatically calls functions when requested by the GenAI model. */ | ||
| 35 | + /** | ||
| 36 | + * A responder that automatically calls functions when requested by the GenAI model. | ||
| 37 | + * | ||
| 38 | + * @deprecated This class and its package are deprecated. See the <a | ||
| 39 | + * href="https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk#java"> | ||
| 40 | + * migration guide</a> for more details. | ||
| 41 | + */ | ||
| 42 | + @Deprecated | ||
| 36 | 43 | public final class AutomaticFunctionCallingResponder { | |
| 37 | 44 | private int maxFunctionCalls = 1; | |
| 38 | 45 | private int remainingFunctionCalls; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,7 +40,12 @@ | |||
| 40 | 40 | * Represents a conversation between the user and the model. | |
| 41 | 41 | * | |
| 42 | 42 | * <p>Note: this class is NOT thread-safe. | |
| 43 | + * | ||
| 44 | + * @deprecated This class and its package are deprecated. See the <a | ||
| 45 | + * href="https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk#java"> | ||
| 46 | + * migration guide</a> for more details. | ||
| 43 | 47 | */ | |
| 48 | + @Deprecated | ||
| 44 | 49 | public final class ChatSession { | |
| 45 | 50 | private final GenerativeModel model; | |
| 46 | 51 | private final Optional<ChatSession> rootChatSession; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,7 +18,14 @@ | |||
| 18 | 18 | ||
| 19 | 19 | import com.google.common.collect.ImmutableSet; | |
| 20 | 20 | ||
| 21 | - /** A class that holds all constants for vertexai/generativeai. */ | ||
| 21 | + /** | ||
| 22 | + * A class that holds all constants for vertexai/generativeai. | ||
| 23 | + * | ||
| 24 | + * @deprecated This class and its package are deprecated. See the <a | ||
| 25 | + * href="https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk#java"> | ||
| 26 | + * migration guide</a> for more details. | ||
| 27 | + */ | ||
| 28 | + @Deprecated | ||
| 22 | 29 | public final class Constants { | |
| 23 | 30 | public static final String MODEL_NAME_PREFIX_PROJECTS = "projects/"; | |
| 24 | 31 | public static final String MODEL_NAME_PREFIX_PUBLISHERS = "publishers/"; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,7 +22,14 @@ | |||
| 22 | 22 | import com.google.cloud.vertexai.api.Part; | |
| 23 | 23 | import com.google.common.base.Strings; | |
| 24 | 24 | ||
| 25 | - /** Helper class to create content. */ | ||
| 25 | + /** | ||
| 26 | + * Helper class to create content. | ||
| 27 | + * | ||
| 28 | + * @deprecated This class and its package are deprecated. See the <a | ||
| 29 | + * href="https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk#java"> | ||
| 30 | + * migration guide</a> for more details. | ||
| 31 | + */ | ||
| 32 | + @Deprecated | ||
| 26 | 33 | public class ContentMaker { | |
| 27 | 34 | private static final String DEFAULT_ROLE = "user"; | |
| 28 | 35 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,7 +29,14 @@ | |||
| 29 | 29 | import java.lang.reflect.Modifier; | |
| 30 | 30 | import java.lang.reflect.Parameter; | |
| 31 | 31 | ||
| 32 | - /** Helper class to create {@link com.google.cloud.vertexai.api.FunctionDeclaration} */ | ||
| 32 | + /** | ||
| 33 | + * Helper class to create {@link com.google.cloud.vertexai.api.FunctionDeclaration} | ||
| 34 | + * | ||
| 35 | + * @deprecated This class and its package are deprecated. See the <a | ||
| 36 | + * href="https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk#java"> | ||
| 37 | + * migration guide</a> for more details. | ||
| 38 | + */ | ||
| 39 | + @Deprecated | ||
| 33 | 40 | public final class FunctionDeclarationMaker { | |
| 34 | 41 | ||
| 35 | 42 | /** | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -45,7 +45,12 @@ | |||
| 45 | 45 | * | |
| 46 | 46 | * <p>Note: The instances of {@link ChatSession} returned by {@link GenerativeModel#startChat()} are | |
| 47 | 47 | * NOT thread-safe. | |
| 48 | + * | ||
| 49 | + * @deprecated This class and its package are deprecated. See the <a | ||
| 50 | + * href="https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk#java"> | ||
| 51 | + * migration guide</a> for more details. | ||
| 48 | 52 | */ | |
| 53 | + @Deprecated | ||
| 49 | 54 | public final class GenerativeModel { | |
| 50 | 55 | private final String modelName; | |
| 51 | 56 | private final String resourceName; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -27,7 +27,14 @@ | |||
| 27 | 27 | import java.net.URI; | |
| 28 | 28 | import java.util.Map; | |
| 29 | 29 | ||
| 30 | - /** Helper class to create {@link com.google.cloud.vertexai.api.Part} */ | ||
| 30 | + /** | ||
| 31 | + * Helper class to create {@link com.google.cloud.vertexai.api.Part} | ||
| 32 | + * | ||
| 33 | + * @deprecated This class and its package are deprecated. See the <a | ||
| 34 | + * href="https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk#java"> | ||
| 35 | + * migration guide</a> for more details. | ||
| 36 | + */ | ||
| 37 | + @Deprecated | ||
| 31 | 38 | public class PartMaker { | |
| 32 | 39 | ||
| 33 | 40 | private PartMaker() {} | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,7 +30,14 @@ | |||
| 30 | 30 | import java.util.List; | |
| 31 | 31 | import java.util.Map; | |
| 32 | 32 | ||
| 33 | - /** Helper class to post-process GenerateContentResponse. */ | ||
| 33 | + /** | ||
| 34 | + * Helper class to post-process GenerateContentResponse. | ||
| 35 | + * | ||
| 36 | + * @deprecated This class and its package are deprecated. See the <a | ||
| 37 | + * href="https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk#java"> | ||
| 38 | + * migration guide</a> for more details. | ||
| 39 | + */ | ||
| 40 | + @Deprecated | ||
| 34 | 41 | public class ResponseHandler { | |
| 35 | 42 | ||
| 36 | 43 | /** | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,14 @@ | |||
| 21 | 21 | import java.util.stream.Stream; | |
| 22 | 22 | import java.util.stream.StreamSupport; | |
| 23 | 23 | ||
| 24 | - /** An iterable of GenerateContentResponse. */ | ||
| 24 | + /** | ||
| 25 | + * An iterable of GenerateContentResponse. | ||
| 26 | + * | ||
| 27 | + * @deprecated This class and its package are deprecated. See the <a | ||
| 28 | + * href="https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk#java"> | ||
| 29 | + * migration guide</a> for more details. | ||
| 30 | + */ | ||
| 31 | + @Deprecated | ||
| 25 | 32 | public class ResponseStream<GenerateContentResponse> implements Iterable<GenerateContentResponse> { | |
| 26 | 33 | ||
| 27 | 34 | private ResponseStreamIteratorWithHistory<GenerateContentResponse> iteratorWithHistory; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,14 @@ | |||
| 21 | 21 | import java.util.Iterator; | |
| 22 | 22 | import java.util.List; | |
| 23 | 23 | ||
| 24 | - /** Iterator of the ResponseStream that holds the response chunks. */ | ||
| 24 | + /** | ||
| 25 | + * Iterator of the ResponseStream that holds the response chunks. | ||
| 26 | + * | ||
| 27 | + * @deprecated This class and its package are deprecated. See the <a | ||
| 28 | + * href="https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk#java"> | ||
| 29 | + * migration guide</a> for more details. | ||
| 30 | + */ | ||
| 31 | + @Deprecated | ||
| 25 | 32 | public class ResponseStreamIteratorWithHistory<GenerateContentResponse> | |
| 26 | 33 | implements Iterator<GenerateContentResponse> { | |
| 27 | 34 | Iterator serverStreamIterator = null; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments