Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,14 @@
import java.util.Map;
import java.util.logging.Logger;

/** A responder that automatically calls functions when requested by the GenAI model. */
/**
* A responder that automatically calls functions when requested by the GenAI model.
*
* @deprecated This class and its package are deprecated. See the <a
* href="https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk#java">
* migration guide</a> for more details.
*/
@Deprecated
public final class AutomaticFunctionCallingResponder {
private int maxFunctionCalls = 1;
private int remainingFunctionCalls;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@
* Represents a conversation between the user and the model.
*
* <p>Note: this class is NOT thread-safe.
*
* @deprecated This class and its package are deprecated. See the <a
* href="https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk#java">
* migration guide</a> for more details.
*/
@Deprecated
public final class ChatSession {
private final GenerativeModel model;
private final Optional<ChatSession> rootChatSession;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@

import com.google.common.collect.ImmutableSet;

/** A class that holds all constants for vertexai/generativeai. */
/**
* A class that holds all constants for vertexai/generativeai.
*
* @deprecated This class and its package are deprecated. See the <a
* href="https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk#java">
* migration guide</a> for more details.
*/
@Deprecated
public final class Constants {
public static final String MODEL_NAME_PREFIX_PROJECTS = "projects/";
public static final String MODEL_NAME_PREFIX_PUBLISHERS = "publishers/";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@
import com.google.cloud.vertexai.api.Part;
import com.google.common.base.Strings;

/** Helper class to create content. */
/**
* Helper class to create content.
*
* @deprecated This class and its package are deprecated. See the <a
* href="https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk#java">
* migration guide</a> for more details.
*/
@Deprecated
public class ContentMaker {
private static final String DEFAULT_ROLE = "user";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,14 @@
import java.lang.reflect.Modifier;
import java.lang.reflect.Parameter;

/** Helper class to create {@link com.google.cloud.vertexai.api.FunctionDeclaration} */
/**
* Helper class to create {@link com.google.cloud.vertexai.api.FunctionDeclaration}
*
* @deprecated This class and its package are deprecated. See the <a
* href="https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk#java">
* migration guide</a> for more details.
*/
@Deprecated
public final class FunctionDeclarationMaker {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@
*
* <p>Note: The instances of {@link ChatSession} returned by {@link GenerativeModel#startChat()} are
* NOT thread-safe.
*
* @deprecated This class and its package are deprecated. See the <a
* href="https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk#java">
* migration guide</a> for more details.
*/
@Deprecated
public final class GenerativeModel {
private final String modelName;
private final String resourceName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,14 @@
import java.net.URI;
import java.util.Map;

/** Helper class to create {@link com.google.cloud.vertexai.api.Part} */
/**
* Helper class to create {@link com.google.cloud.vertexai.api.Part}
*
* @deprecated This class and its package are deprecated. See the <a
* href="https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk#java">
* migration guide</a> for more details.
*/
@Deprecated
public class PartMaker {

private PartMaker() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,14 @@
import java.util.List;
import java.util.Map;

/** Helper class to post-process GenerateContentResponse. */
/**
* Helper class to post-process GenerateContentResponse.
*
* @deprecated This class and its package are deprecated. See the <a
* href="https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk#java">
* migration guide</a> for more details.
*/
@Deprecated
public class ResponseHandler {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@
import java.util.stream.Stream;
import java.util.stream.StreamSupport;

/** An iterable of GenerateContentResponse. */
/**
* An iterable of GenerateContentResponse.
*
* @deprecated This class and its package are deprecated. See the <a
* href="https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk#java">
* migration guide</a> for more details.
*/
@Deprecated
public class ResponseStream<GenerateContentResponse> implements Iterable<GenerateContentResponse> {

private ResponseStreamIteratorWithHistory<GenerateContentResponse> iteratorWithHistory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,14 @@
import java.util.Iterator;
import java.util.List;

/** Iterator of the ResponseStream that holds the response chunks. */
/**
* Iterator of the ResponseStream that holds the response chunks.
*
* @deprecated This class and its package are deprecated. See the <a
* href="https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk#java">
* migration guide</a> for more details.
*/
@Deprecated
public class ResponseStreamIteratorWithHistory<GenerateContentResponse>
implements Iterator<GenerateContentResponse> {
Iterator serverStreamIterator = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,14 @@
import com.google.protobuf.InvalidProtocolBufferException;
import com.google.protobuf.util.JsonFormat;

/** Helper class to create {@link com.google.cloud.vertexai.api.Schema} */
/**
* Helper class to create {@link com.google.cloud.vertexai.api.Schema}
*
* @deprecated This class and its package are deprecated. See the <a
* href="https://cloud.google.com/vertex-ai/generative-ai/docs/deprecations/genai-vertexai-sdk#java">
* migration guide</a> for more details.
*/
@Deprecated
public final class SchemaMaker {

private SchemaMaker() {}
Expand Down
Loading